From: Diego Elio 'Flameeyes' Pettenò Date: Wed, 24 Jun 2009 15:39:25 +0000 (+0200) Subject: Check for and use flags to reject undefined symbols in libraries. X-Git-Tag: submit/2.0-panda/20130828.192557~1653 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4703ce7e8be3be6dfa3511f5b4356720589754a;p=profile%2Fivi%2Fpulseaudio-panda.git Check for and use flags to reject undefined symbols in libraries. Make sure that all the PulseAudio modules are built properly without outstanding undefined symbols: if the undefined symbols are found, reject link. --- diff --git a/configure.ac b/configure.ac index 06539b3..931b57d 100644 --- a/configure.ac +++ b/configure.ac @@ -117,6 +117,11 @@ CC_CHECK_LDFLAGS([${tmp_ldflag}], [VERSIONING_LDFLAGS='-Wl,-version-script=$(srcdir)/map-file']) AC_SUBST([VERSIONING_LDFLAGS]) +dnl Check for the proper way to build libraries that have no undefined +dnl symbols; on some hosts this needs to be avoided but the macro +dnl takes care of it. +CC_NOUNDEFINED + dnl Check whether to build tests by default (as compile-test) or not AC_ARG_ENABLE([default-build-tests], AS_HELP_STRING([--disable-default-build-tests], [Build test programs only during make check])) diff --git a/src/Makefile.am b/src/Makefile.am index ae90ae8..f365132 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -99,7 +99,7 @@ WINSOCK_LIBS=-lwsock32 -lws2_32 -lwininet endif FOREIGN_CFLAGS = -w -MODULE_LDFLAGS = -module -disable-static -avoid-version +MODULE_LDFLAGS = -module -disable-static -avoid-version $(LDFLAGS_NOUNDEFINED) ################################### # Extra files #