
$FreeBSD: ports/irc/irssi-otr/files/patch-CMakeLists.txt,v 1.2 2009/02/19 19:47:22 beech Exp $

--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -231,7 +231,7 @@
 
 IF(HAVE_IRSSI)
   ADD_LIBRARY(irssiotr SHARED irssi_otr.c otr_util.c otr_ops.c otr_key.c ${PROJECT_BINARY_DIR}/otr-formats.c)
-  TARGET_LINK_LIBRARIES(irssiotr ${GLIB_LIBRARIES} ${LIBOTR_LIBRARIES})
+  TARGET_LINK_LIBRARIES(irssiotr ${GLIB_LDFLAGS} ${LIBOTR_LIBRARIES})
   SET_TARGET_PROPERTIES(irssiotr PROPERTIES 
     COMPILE_FLAGS -DTARGET_IRSSI
     OUTPUT_NAME "otr"
