[Libosinfo] [PATCH] build: Fix "--no-undefined" linker's flag for solaris

Fabiano Fidêncio fidencio at redhat.com
Wed May 11 13:27:48 UTC 2016


From: Andrew Stormont <andyjstormont at gmail.com>

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1302339
Acked-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 configure.ac | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index f7ecb8f..e4850c7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -101,6 +101,10 @@ case "$host" in
     NO_UNDEFINED_LDFLAGS="-Wl,-undefined,error"
     ;;
 
+  *-*-solaris*)
+    NO_UNDEFINED_LDFLAGS="-zdefs"
+    ;;
+
   *)
     NO_UNDEFINED_FLAGS="-Wl,--no-undefined"
     VERSION_SCRIPT_FLAGS=-Wl,--version-script=
-- 
2.7.4




More information about the Libosinfo mailing list