[Xcb] [PATCH xcb-util-common-m4] Introduce XCB_UTIL_COMMON_LDFLAGS and set it to -no-undefined
Jon TURNEY
jon.turney at dronecode.org.uk
Fri Mar 25 05:41:32 PDT 2011
Add XCB_UTIL_COMMON_LDFLAGS variable, a common set of linker flags
for all xcb-util libraries
Add -no-undefined to the value of XCB_UTIL_COMMON_LDFLAGS
-no-undefined assures libtool that the library has no unresolved
symbols at link time, so that libtool will build a shared library for
platforms that require all symbols to be resolved when the library is linked.
Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
---
xcb_util_common.m4 | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/xcb_util_common.m4 b/xcb_util_common.m4
index f9463d3..7112352 100644
--- a/xcb_util_common.m4
+++ b/xcb_util_common.m4
@@ -17,6 +17,10 @@ AC_SUBST(xcbincludedir)
pkgconfigdir='${libdir}/pkgconfig'
AC_SUBST(pkgconfigdir)
+# Define common linker flags
+XCB_UTIL_COMMON_LDFLAGS='-no-undefined'
+AC_SUBST(XCB_UTIL_COMMON_LDFLAGS)
+
# Check xcb version
PKG_CHECK_MODULES(XCB, xcb >= [$1])
--
1.7.4
More information about the Xcb
mailing list