aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-12-19 04:11:47 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-12-19 04:11:47 +0000
commit7ef0c29f312b04359a27fcb040f54aea610b3594 (patch)
tree998e143c6f071b65b1eabc2b3be177a7bce44faf /configure.ac
parent6d196fd8683288fa5f29f6eddd28fb12a0a06c79 (diff)
fixed up OSC for MinGW, doesn't compile the OSC.dll lib, but the individual objects compile fine
svn path=/trunk/externals/OSCx/; revision=4255
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac19
1 files changed, 15 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index cd8db47..92b9f3a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,39 +82,50 @@ else
LDFLAGS="-Wl,-export_dynamic -shared"
dnl we could test for bad glibc here, but don't
pd_suffix=pd_linux
+ LIBS="-lc -lm"
;;
powerpc-*-linux*)
CFLAGS="$CFLAGS -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O1"
LDFLAGS="-Wl,-export_dynamic -shared"
pd_suffix=pd_linux
+ LIBS="-lc -lm"
;;
*-*-linux*)
CFLAGS="$CFLAGS -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O1"
LDFLAGS="-Wl,-export_dynamic -shared"
INCLUDES="$INCLUDES"
pd_suffix=pd_linux
+ LIBS="-L../../../pd/bin -lpd -lc -lm"
;;
sparc-sun-*)
echo "YOU HAVE A SPARC STATION, not setting any flags, not supported yet"
;;
*-*-cygwin*)
- CFLAGS="$CPFLAGS -mno-cygwin -Wall -Wimplicit -Wunused -Wmissing-prototypes -O3 "
+ CFLAGS="$CFLAGS -mno-cygwin -Wall -Wimplicit -Wunused -Wmissing-prototypes -O3 "
LDFLAGS="-Wl,-export_dynamic -shared"
INCLUDES="$INCLUDES -I../../../pd/bin"
- LIBOSC=libOSC.lib
pd_suffix=dll
+ LIBS="-lc -lm"
+ ;;
+ *-*-mingw*)
+ CFLAGS="$CFLAGS -mms-bitfields -Wall -Wimplicit -Wunused -Wmissing-prototypes -O3 "
+ LDFLAGS="-shared"
+ INCLUDES="$INCLUDES -I../../../pd/bin"
+ pd_suffix=dll
+ LIBS="-L../../../pd/bin -lpd -lm -lwsock32"
;;
*-*-darwin*)
- CFLAGS="$CPFLAGS -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O3 "
- # LDFLAGS=" -bundle -bundle_loader ../../../pd/bin/pd -undefined suppress -flat_namespace"
+ CFLAGS="$CFLAGS -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O3 "
LDFLAGS=" -bundle -bundle_loader ../../../pd/bin/pd -flat_namespace "
pd_suffix=pd_darwin
+ LIBS="-lc -lm"
;;
*)
dnl assume unix
CFLAGS="$CFLAGS -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O1"
LDFLAGS="-Wl,-export_dynamic -shared"
pd_suffix=pd_linux
+ LIBS="-lc -lm"
;;
esac
fi