[gtk-vnc] test for --no-undefined linker flag



commit 25304f82f1aac6e6dec0b0cda39d1bb0919af66c
Author: Doug Goldstein <cardoe cardoe com>
Date:   Mon Sep 16 14:19:34 2013 +0100

    test for --no-undefined linker flag
    
    Currently the code assumes that all non-Windows like platforms have a
    linker that supports --no-undefined, however llvm based compilers do not
    support this on Linux or Mac OS X, so instead test for it and only
    use if it is available.

 configure.ac |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index f7a17b8..3a36960 100644
--- a/configure.ac
+++ b/configure.ac
@@ -159,7 +159,8 @@ case "$host" in
     ;;
 
   *)
-    NO_UNDEFINED_FLAGS="-Wl,--no-undefined"
+    `ld --help 2>&1 | grep -- --no-undefined >/dev/null` && \
+      NO_UNDEFINED_FLAGS="-Wl,--no-undefined"
     VERSION_SCRIPT_FLAGS=-Wl,--version-script=
     `ld --help 2>&1 | grep -- --version-script >/dev/null` || \
       VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]