From 088232286a7814a92b5b0d4a34f243a2e857facc Mon Sep 17 00:00:00 2001 From: Alexey Tarasov Date: Tue, 1 Sep 2009 02:07:51 +1100 Subject: General changes to support freebsd system in building scripts --- android-configure.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'android-configure.sh') diff --git a/android-configure.sh b/android-configure.sh index 59ec9b4..16e0d4d 100755 --- a/android-configure.sh +++ b/android-configure.sh @@ -203,6 +203,12 @@ log "SDL-probe : SDL_LIBS = $SDL_LIBS" EXTRA_CFLAGS="$SDL_CFLAGS" EXTRA_LDFLAGS="$SDL_LIBS" +case "$OS" in + freebsd-*) + EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -lpthread" + ;; +esac + cat > $TMPC << EOF #include #undef main @@ -269,6 +275,8 @@ case "$OS" in ;; linux-*) PROBE_ALSA=yes; PROBE_OSS=yes; PROBE_ESD=yes; ;; + freebsd-*) PROBE_OSS=yes; + ;; windows) PROBE_WINAUDIO=yes ;; esac @@ -414,6 +422,9 @@ case "$OS" in darwin-*) CONFIG_OS=DARWIN BSD=1 ;; + freebsd-*) CONFIG_OS=FREEBSD + BSD=1 + ;; windows*) CONFIG_OS=WIN32 ;; *) CONFIG_OS=$OS -- cgit v1.1