configure.in
changeset 6967 adc80d085ddf
parent 6960 e4e9fbf6f333
child 6986 bc887debed9b
     1.1 --- a/configure.in	Tue Mar 05 18:54:55 2013 -0500
     1.2 +++ b/configure.in	Mon Feb 25 22:46:21 2013 +0000
     1.3 @@ -794,6 +794,14 @@
     1.4                 test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
     1.5                  echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
     1.6                  AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC, "$pulseaudio_lib", [ ])
     1.7 +
     1.8 +                case "$host" in
     1.9 +                    # On Solaris, pulseaudio must be linked deferred explicitly
    1.10 +                    # to prevent undefined symbol failures.
    1.11 +                    *-*-solaris*)
    1.12 +                        PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
    1.13 +                        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
    1.14 +                esac
    1.15              else
    1.16                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
    1.17              fi