#!/bin/sh
-export version=0.7.9
+export version=0.8.7
export soversion=5
show_help()
NetBSD)
[ "$optimisations" = "true" ] &&
echo "OPTIMISATIONS+=-ffast-math"
- echo "CFLAGS+=-pthread"
+ echo "CFLAGS+=-fPIC -pthread"
echo "SHFLAGS=-shared"
echo "RDYNAMIC=-rdynamic"
echo "LDFLAGS+=-Wl,--no-undefined -Wl,--as-needed"
export targetarch=
export amd64=false
+# Define the compiler used in tests (gcc is not installed everywhere)
+: ${CC:=gcc}
+
# Iterate through arguments
for i in "$@"
do
[ $help = 0 ] && echo "Configuring `basename $i`:"
olddir=`pwd`
cd src/$i
- ./configure "$@"
+ CC="$CC" ./configure "$@"
[ $? != 0 ] && exit 1
cd $olddir
fi