
$FreeBSD: tags/RELEASE_9_3_0/irc/irssi-otr/files/patch-CMakeLists.txt 340725 2014-01-22 17:40:44Z mat $

--- 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"
