summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-11-21 01:16:37 +0100
committerDiego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-11-21 13:04:26 +0100
commit0b92e53cf953159308d00670708d85c890efadc4 (patch)
treea97a5d5232f275ce21c765537e351055b4c40f6e
parentca133ff6a2ecdb34ab105e87cebf805cb5e799bb (diff)
downloadalsa-lib-0b92e53cf953159308d00670708d85c890efadc4.tar.gz
Check for --no-undefined linker flag and use it.
This adds extra safety that the built libraries will have all the correct dependencies linked in. Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
-rw-r--r--configure.in2
-rw-r--r--modules/mixer/simple/Makefile.am8
-rw-r--r--src/Makefile.am2
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