summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Rodríguez <crrodriguez@opensuse.org>2013-07-21 01:28:51 -0400
committerErik de Castro Lopo <erikd@mega-nerd.com>2013-07-21 19:51:08 +1000
commit355f4aae47ee7d3dedf267629d4c29ce871a87bd (patch)
treeea56db8a1872e141154318a5fd5bb7e0fa612aaf
parent33c23b3dfa0806f31542ac9cf516d75e7a81fefc (diff)
downloadflac-355f4aae47ee7d3dedf267629d4c29ce871a87bd.tar.gz
Link with -no-undefined regardless of the OS
libFLAC* must never have undefined symbols no matter what is the target platform. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
-rw-r--r--configure.ac10
-rw-r--r--src/libFLAC++/Makefile.am2
-rw-r--r--src/libFLAC/Makefile.am2
3 files changed, 3 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac
index 50ef80e8..ba46caf6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -129,19 +129,11 @@ AM_CONDITIONAL(FLaC__CPU_PPC_SPE, test "x$abi_spe" = xtrue)
os_is_windows=no
case "$host" in
*-*-cygwin|*mingw*)
- # define this variable for enabling strict exports with libtool; for now, it's supported by Win32 and OS/2
- LT_NO_UNDEFINED="-no-undefined"
CPPFLAGS="-D__MSVCRT_VERSION__=0x0601 $CPPFLAGS"
os_is_windows=yes
;;
- *emx*)
- LT_NO_UNDEFINED="-no-undefined"
- ;;
- *)
- LT_NO_UNDEFINED=
- ;;
esac
-AC_SUBST(LT_NO_UNDEFINED)
+
AM_CONDITIONAL(OS_IS_WINDOWS, test "x$os_is_windows" = xyes)
case "$host" in
diff --git a/src/libFLAC++/Makefile.am b/src/libFLAC++/Makefile.am
index 51b8cf8e..b84f3e4f 100644
--- a/src/libFLAC++/Makefile.am
+++ b/src/libFLAC++/Makefile.am
@@ -45,7 +45,7 @@ EXTRA_DIST = \
libFLAC++.m4
# see 'http://www.gnu.org/software/libtool/manual/libtool.html#Libtool-versioning' for numbering convention
-libFLAC___la_LDFLAGS = $(AM_LDFLAGS) -version-info 9:0:3 @LT_NO_UNDEFINED@
+libFLAC___la_LDFLAGS = $(AM_LDFLAGS) -no-undefined -version-info 9:0:3
libFLAC___la_LIBADD = ../libFLAC/libFLAC.la
libFLAC___la_SOURCES = \
diff --git a/src/libFLAC/Makefile.am b/src/libFLAC/Makefile.am
index 86155ab0..939f706d 100644
--- a/src/libFLAC/Makefile.am
+++ b/src/libFLAC/Makefile.am
@@ -113,7 +113,7 @@ extra_ogg_sources = \
endif
# see 'http://www.gnu.org/software/libtool/manual/libtool.html#Libtool-versioning' for numbering convention
-libFLAC_la_LDFLAGS = $(AM_LDFLAGS) -version-info 11:0:3 $(LOCAL_EXTRA_LDFLAGS) @LT_NO_UNDEFINED@
+libFLAC_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined -version-info 11:0:3 $(LOCAL_EXTRA_LDFLAGS)
libFLAC_sources = \
bitmath.c \