diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2011-08-07 14:46:35 +0100 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2011-08-07 15:18:29 -0700 |
commit | 72a0432e1adee743dc2e7441cc52c7c14a0e611f (patch) | |
tree | 32d791d16f1a1e7ea6372b99ea7c14a25341f7b8 | |
parent | ea28a79de4eb4b2b5dc270acfc2f12b5ec76cda1 (diff) |
Use -no-undefined libtool flag, fix underlinking with --enable-motif
Use -no-undefined to assure libtool that the library has no unresolved
symbols at link time, so that libtool will build a shared library on
platforms require that all symbols are resolved when the library is linked.
This exposes the fact that we are underlinked when ./configured with
--enable-motif, so also link with motif libs in that case.
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 4f8bb04..b95438c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -29,7 +29,7 @@ lib_LTLIBRARIES = libGLw.la libGLw_la_SOURCES = GLwDrawA.c libGLw_la_CFLAGS = $(GLW_CLFAGS) libGLw_la_LIBADD = $(GLW_LIBS) -libGLw_la_LDFLAGS = -version-info $(GLW_LIBRARY_VERSION) +libGLw_la_LDFLAGS = -version-info $(GLW_LIBRARY_VERSION) -no-undefined if ENABLE_MOTIF libGLw_la_SOURCES += GLwMDrawA.c libGLw_la_CFLAGS += $(MOTIF_CFLAGS) diff --git a/configure.ac b/configure.ac index 8d46a11..da4d445 100644 --- a/configure.ac +++ b/configure.ac @@ -87,7 +87,7 @@ AC_SUBST([GLW_PC_LIB_PRIV]) AC_SUBST([GLW_PC_CFLAGS]) CFLAGS="$CFLAGS $GL_CFLAGS" -LIBS="$LIBS $GL_LIBS" +LIBS="$LIBS $GL_LIBS $MOTIF_LIBS" dnl Set up C warning flags. Copy of XORG_CWARNFLAGS. if test "x$GCC" = xyes ; then |