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
Showing with 154 additions and 183 deletions.
  1. +8 −0 configure.in
  2. +135 −158 src/audio/sun/SDL_sunaudio.c
  3. +0 −10 src/audio/sun/SDL_sunaudio.h
  4. +6 −6 src/video/SDL_blit_0.c
  5. +5 −5 src/video/SDL_blit_1.c
  6. +0 −4 src/video/x11/edid.h
@@ -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.