Fix build problem on Solaris (fixes ticket #52)

This commit is contained in:
David Henningsson 2009-07-30 08:38:42 +00:00
parent 17d65e2889
commit bacd8dbe37
2 changed files with 11 additions and 1 deletions

View file

@ -80,6 +80,9 @@ os2*)
LDFLAGS="$LDFLAGS -Zbin-files"
LIBFLUID_LDFLAGS="-no-undefined"
;;
solaris*)
LDFLAGS="$LDFLAGS -lnsl -lsocket"
;;
esac
AC_SUBST(LIBFLUID_LIBS)
@ -87,6 +90,10 @@ AC_SUBST(LIBFLUID_CPPFLAGS)
AC_SUBST(LIBFLUID_LDFLAGS)
AC_SUBST(FLUID_CPPFLAGS)
dnl Check for GNU LD
AC_LIB_PROG_LD_GNU
AM_CONDITIONAL(GNU_LD_SUPPORT, test "x$with_gnu_ld" = "xyes")
AM_CONDITIONAL(MINGW32_SUPPORT, test "$mingw32_support" == "yes")
AC_ARG_ENABLE(double, AS_HELP_STRING([--enable-double],

View file

@ -139,6 +139,9 @@ libfluidsynth_la_CPPFLAGS = $(LIBFLUID_CPPFLAGS)
fluidsynth_SOURCES = fluidsynth.c
fluidsynth_LDADD = libfluidsynth.la
fluidsynth_LDFLAGS = -Wl,--as-needed
fluidsynth_CPPFLAGS = $(FLUIDSYNTH_CPPFLAGS)
if GNU_LD_SUPPORT
fluidsynth_LDFLAGS = -Wl,--as-needed
endif