Package: libsdl-mixer1.2
Version: 1.2.6-2
Severity: normal
Hi,
I see you have added --as-needed to the link flags of sdl-mixer1.2; I
suggest you prepend -Wl,-z,defs before this flag to catch missing link
flags; at least I can confirm that libsdl-mixer1.2 uses sin() and other
functions from libm, but does not link with libm. This isn't too
important since e.g. libvorbis pulls libm, but it's dangerous to only
add --as-needed, especially would you forget an important link flag in
the future.
I'm attaching a patch fixing link with libm; you should also change:
DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-Wl,-z,defs -Wl,-Bsymbolic -Wl,--as-needed"
into:
LDFLAGS+="-Wl,-z,defs -Wl,-Bsymbolic -Wl,--as-needed"
and build-dep on cdbs >= 0.4.41.
Bye,
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Versions of packages libsdl-mixer1.2 depends on:
ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries
ii libogg0 1.1.3-2 Ogg Bitstream Library
ii libsdl1.2debian 1.2.11-8 Simple DirectMedia Layer
ii libsmpeg0 0.4.5+cvs20030824-1.9 SDL MPEG Player Library - shared l
ii libvorbis0a 1.1.2.dfsg-1.2 The Vorbis General Audio Compressi
ii libvorbisfile3 1.1.2.dfsg-1.2 The Vorbis General Audio Compressi
libsdl-mixer1.2 recommends no packages.
-- no debconf information
--
Loïc Minier <[EMAIL PROTECTED]>
diff -Nur sdl-mixer1.2-1.2.6/configure.in sdl-mixer1.2-1.2.6.new/configure.in
--- sdl-mixer1.2-1.2.6/configure.in 2007-03-06 13:30:18.000000000 +0100
+++ sdl-mixer1.2-1.2.6.new/configure.in 2007-03-06 13:32:19.000000000 +0100
@@ -78,6 +78,10 @@
;;
esac
+dnl Check for libm
+AC_CHECK_LIBM
+LIBS="$LIBS $LIBM"
+
dnl Check for SDL
SDL_VERSION=1.2.4
AM_PATH_SDL($SDL_VERSION,