mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-01-19 07:50:49 +00:00
Fix build problem on Solaris (fixes ticket #52)
This commit is contained in:
parent
17d65e2889
commit
bacd8dbe37
2 changed files with 11 additions and 1 deletions
|
@ -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],
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue