diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-12-25 19:46:04 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-12-25 19:46:04 +0000 |
commit | dd594f0816669c94b8319133e9af97800b6df254 (patch) | |
tree | 5b24dd9ad131afcd30c761e274445589599d0c9f | |
parent | 3fb9e4c425b7dfcc7ffe65441a4a8d85d8951a1c (diff) | |
download | xine-lib-dd594f0816669c94b8319133e9af97800b6df254.tar.gz xine-lib-dd594f0816669c94b8319133e9af97800b6df254.tar.bz2 |
* On platforms where it's possible, use -Wl,-z,defs option so that the linker
reports undefined symbols at buildtime, rather than aborting at runtime.
CVS patchset: 8456
CVS date: 2006/12/25 19:46:04
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | configure.ac | 10 |
2 files changed, 12 insertions, 0 deletions
@@ -30,6 +30,8 @@ xine-lib (1.1.4) [bug #1445746] * Make the libFLAC-based decoder and demuxer for FLAC files work with recent FLAC release 1.1.3. + * On platforms where it's possible, use "-Wl,-z,defs" option so that the linker + reports undefined symbols at buildtime, rather than aborting at runtime. xine-lib (1.1.3) * Security fixes: diff --git a/configure.ac b/configure.ac index 7bc82a351..a8f5c43b8 100644 --- a/configure.ac +++ b/configure.ac @@ -2409,6 +2409,16 @@ AC_TRY_CFLAGS("-Wstrict-aliasing", wsa="-Wstrict-aliasing") AC_TRY_CFLAGS("-Wstrict-aliasing=2", wsa="-Wstrict-aliasing=2") CFLAGS="$CFLAGS $wsa" +case $host_or_hostalias in + dnl FreeBSD (et al.) does not complete linking for shared objects when pthreads + dnl are requested, as different implementations are present; to avoid problems + dnl use -Wl,-z,defs only for those platform not behaving this way. + *-freebsd*) ;; + *) + AC_TRY_LDFLAGS([-Wl,-z,defs], [LDFLAGS="$LDFLAGS -Wl,-z,defs"]) + ;; +esac + dnl Common cflags for all platforms CFLAGS="-DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE \$(MULTIPASS_CFLAGS) $CFLAGS" DEBUG_CFLAGS="-D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE $DEBUG_CFLAGS" |