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>
This commit is contained in:
parent
33c23b3dfa
commit
355f4aae47
10
configure.ac
10
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
|
||||
|
@ -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 = \
|
||||
|
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user