Skip to content

Commit

Permalink
-Change: fix compilation under *BSD with pulse audio
Browse files Browse the repository at this point in the history
  • Loading branch information
miniupnp committed Jun 4, 2018
1 parent f244d10 commit ec97343
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config.lib
Original file line number Diff line number Diff line change
Expand Up @@ -991,9 +991,6 @@ make_cflags_and_ldflags() {
if [ "$os" = "BEOS" ] || [ "$os" = "HAIKU" ] || [ "$os" = "OSX" ] || [ "$os" = "MORPHOS" ] || [ "$os" = "FREEBSD" ] || [ "$os" = "OPENBSD" ] || [ "$os" = "NETBSD" ] || [ "$os" = "HPUX" ] || [ "$os" = "SUNOS" ] || [ "$os" = "OS2" ]; then
CFLAGS="$CFLAGS -DUNIX"
fi
if [ "$os" = "FREEBSD" ] || [ "$os" = "OPENBSD" ] || [ "$os" = "NETBSD" ]; then
LIBS="$LIBS -lintl"
fi
# And others like Windows
if [ "$os" = "MINGW" ] || [ "$os" = "CYGWIN" ] || [ "$os" = "WINCE" ]; then
CFLAGS="$CFLAGS -DWIN"
Expand Down Expand Up @@ -1070,6 +1067,9 @@ make_cflags_and_ldflags() {
if [ "$with_pulse" != "0" ]; then
LIBS="$LIBS $(pkg-config --libs-only-l libpulse)"
CFLAGS="$CFLAGS $(pkg-config --cflags libpulse) -DPULSEAUDIO"
if [ "$os" = "FREEBSD" ] || [ "$os" = "OPENBSD" ] || [ "$os" = "NETBSD" ]; then
LIBS="$LIBS -lintl"
fi
fi

if [ "$with_munt" != "0" ]; then
Expand Down

0 comments on commit ec97343

Please sign in to comment.