[Spice-devel] [PATCH 04/15] configure.ac: remove unused dynamic linkage flag

Christophe Fergeau cfergeau at redhat.com
Thu Apr 21 04:53:29 PDT 2011


configure.ac defines a SPICEC_STATIC_LINKAGE_BDYNAMIC variable
when --enable-static-linkage is not set, but it's never used.
SPICEC_STATIC_LINKAGE_BSTATIC is used in client/, but since we
are using libtool, it might be more appropriate to use
'make LDFLAGS="-all-static"' to achieve static link.
---
 configure.ac |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 78a1f46..eff0e07 100644
--- a/configure.ac
+++ b/configure.ac
@@ -272,8 +272,7 @@ AC_ARG_ENABLE(static-linkage,
 [  --enable-static-linkage will generate spice client binary with static linkage to external libraries ],,
 [enable_static_linkage="no"])
 AS_IF([test x"$enable_static_linkage" != "xno"],
-[SPICEC_STATIC_LINKAGE_BSTATIC=["-Wl,-Bstatic"]],
-[SPICEC_STATIC_LINKAGE_BDYNAMIC=["-Wl,-Bdynamic"]])
+[SPICEC_STATIC_LINKAGE_BSTATIC=["-Wl,-Bstatic"]])
 
 
 AS_IF([test "$_cflags_is_set" = "yes"], [], [
@@ -489,7 +488,6 @@ AC_SUBST(SPICE_NONPKGCONFIG_CFLAGS)
 AC_SUBST(SPICE_NONPKGCONFIG_LIBS)
 
 AC_SUBST([SPICEC_STATIC_LINKAGE_BSTATIC])
-AC_SUBST([SPICEC_STATIC_LINKAGE_BDYNAMIC])
 
 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
 
-- 
1.7.4.4



More information about the Spice-devel mailing list