Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix pulseaudio dynamic linking for Solaris builds.

Fix Solaris Studio compilation errors.
Fix sunaudio backend for SDL2.
  • Loading branch information
Shawn Walker committed Feb 25, 2013
1 parent 9cb578a commit 6c6393c4865fce2a4b03952128db6eb22c9579a4

File 1 of 6 in 6c6393c

@@ -794,6 +794,14 @@ AC_HELP_STRING([--enable-pulseaudio-shared], [dynamically load PulseAudio suppor
test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC, "$pulseaudio_lib", [ ])

case "$host" in
# On Solaris, pulseaudio must be linked deferred explicitly
# to prevent undefined symbol failures.
*-*-solaris*)
PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
esac
else
EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
fi

0 comments on commit 6c6393c

Please sign in to comment.