[Pkg-privacy-commits] [irssi-plugin-otr] 31/267: Linker flags for Apple.

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 12:41:25 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository irssi-plugin-otr.

commit 66ab17d449b05b1fa935b27139e60cab444953ad
Author: Uli Meis <a.sporto+bee at gmail.com>
Date:   Thu Aug 14 16:26:53 2008 +0200

    Linker flags for Apple.
    
    Thanks to blacktrash for testing!
---
 CMakeLists.txt             | 6 ++++++
 cmake-extensions/Git.cmake | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 19a3fe9..266c5da 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -196,6 +196,12 @@ ADD_LIBRARY(otr SHARED otr.c otrutil.c otr_ops.c otr_key.c ui.c ${PROJECT_BINARY
 
 TARGET_LINK_LIBRARIES(otr ${GLIB_LIBRARIES} ${LIBOTR_LIBRARIES})
 
+# Now that took some time to figure out...
+
+IF(APPLE)
+  SET_TARGET_PROPERTIES(otr PROPERTIES LINK_FLAGS "-single_module -undefined dynamic_lookup")
+ENDIF(APPLE)
+
 # cscope
 
 FILE(GLOB CSANDHS *.c *.h)
diff --git a/cmake-extensions/Git.cmake b/cmake-extensions/Git.cmake
index b43b366..d731c82 100644
--- a/cmake-extensions/Git.cmake
+++ b/cmake-extensions/Git.cmake
@@ -5,7 +5,7 @@
 #
 MACRO(FIND_GIT_TAGORCOMMIT GITDIR CMAKEVAR)
   EXECUTE_PROCESS(COMMAND bash -c 
-    "GITCOMMIT=`git-log | head -n1 | cut -d' ' -f2`;\\
+    "GITCOMMIT=`git log | head -n1 | cut -d' ' -f2`;\\
      if [ -z \"$GITCOMMIT\" ]; then exit 1;fi; \\
      GITTAG=`cd .git/refs/tags && grep $GITCOMMIT * | cut -d: -f1` ;\\
      if [ -n \"$GITTAG\" ]; then \\

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/irssi-plugin-otr.git



More information about the Pkg-privacy-commits mailing list