1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/benchmarks/netperf/scripts/configure

18 lines
425 B
Plaintext
Raw Normal View History

#!/bin/sh
#
#
# If this is FreeBSD 2.2 or later, this will work. Older FreeBSD versions
# will set CFLAGS to "". Life's a bitch.
#
CFLAGS=`make -V CFLAGS echo` || echo "*** Ignore this error"
if [ X"$CFLAGS" = X ] ; then
CFLAGS="-O2 -fno-strength-reduce"
fi
1996-10-07 16:57:57 +00:00
cd $WRKSRC
echo "Setting CFLAGS to \"$CFLAGS\""
sed -e "s/%CFLAGS%/${CFLAGS}/" makefile >makefile.new
mv -f makefile makefile.orig2
mv -f makefile.new makefile