From 0b92e53cf953159308d00670708d85c890efadc4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Diego=20E=2E=20=27Flameeyes=27=20Petten=C3=B2?= Date: Fri, 21 Nov 2008 01:16:37 +0100 Subject: [PATCH] Check for --no-undefined linker flag and use it. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This adds extra safety that the built libraries will have all the correct dependencies linked in. Signed-off-by: Diego E. 'Flameeyes' Pettenò --- configure.in | 2 ++ modules/mixer/simple/Makefile.am | 8 ++++---- src/Makefile.am | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/configure.in b/configure.in index 5a0fc1b4..5bc0c010 100644 --- a/configure.in +++ b/configure.in @@ -44,6 +44,8 @@ AC_DISABLE_STATIC AC_LIBTOOL_DLOPEN AM_PROG_LIBTOOL +CC_NOUNDEFINED + dnl Checks for header files. AC_HEADER_STDC AM_CONFIG_HEADER(include/config.h) diff --git a/modules/mixer/simple/Makefile.am b/modules/mixer/simple/Makefile.am index dee1ed9f..789f6b57 100644 --- a/modules/mixer/simple/Makefile.am +++ b/modules/mixer/simple/Makefile.am @@ -18,20 +18,20 @@ endif noinst_HEADERS = sbase.h smixer_sbase_la_SOURCES = sbase.c -smixer_sbase_la_LDFLAGS = -module -avoid-version +smixer_sbase_la_LDFLAGS = -module -avoid-version $(LDFLAGS_NOUNDEFINED) smixer_sbase_la_LIBADD = ../../../src/libasound.la smixer_ac97_la_SOURCES = ac97.c sbasedl.c -smixer_ac97_la_LDFLAGS = -module -avoid-version +smixer_ac97_la_LDFLAGS = -module -avoid-version $(LDFLAGS_NOUNDEFINED) smixer_ac97_la_LIBADD = ../../../src/libasound.la smixer_hda_la_SOURCES = hda.c sbasedl.c -smixer_hda_la_LDFLAGS = -module -avoid-version +smixer_hda_la_LDFLAGS = -module -avoid-version $(LDFLAGS_NOUNDEFINED) smixer_hda_la_LIBADD = ../../../src/libasound.la if BUILD_PYTHON smixer_python_la_SOURCES = python.c -smixer_python_la_LDFLAGS = -module -avoid-version $(pythonlibs) +smixer_python_la_LDFLAGS = -module -avoid-version $(pythonlibs) $(LDFLAGS_NOUNDEFINED) smixer_python_la_CFLAGS = $(pythonincludes) smixer_python_la_LIBADD = ../../../src/libasound.la endif diff --git a/src/Makefile.am b/src/Makefile.am index 7d48b123..3204fe46 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -45,7 +45,7 @@ endif SUBDIRS += compat conf libasound_la_LIBADD += compat/libcompat.la @ALSA_DEPLIBS@ -libasound_la_LDFLAGS = -version-info $(COMPATNUM) $(VSYMS) $(SYMFUNCS) +libasound_la_LDFLAGS = -version-info $(COMPATNUM) $(VSYMS) $(SYMFUNCS) $(LDFLAGS_NOUNDEFINED) control/libcontrol.la: $(MAKE) -C control libcontrol.la -- 2.47.1