mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
Fix CFLAGS substitutions
This commit is contained in:
parent
e2c9193b6f
commit
2d1a28c853
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=3925
2
benchmarks/netperf/scripts/configure
vendored
2
benchmarks/netperf/scripts/configure
vendored
@ -1,6 +1,5 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
cd $WRKSRC
|
||||
#
|
||||
# If this is FreeBSD 2.2 or later, this will work. Older FreeBSD versions
|
||||
# will set CFLAGS to "". Life's a bitch.
|
||||
@ -11,6 +10,7 @@ if [ X"$CFLAGS" = X ] ; then
|
||||
CFLAGS="-O2 -fno-strength-reduce"
|
||||
fi
|
||||
|
||||
cd $WRKSRC
|
||||
echo "Setting CFLAGS to \"$CFLAGS\""
|
||||
sed -e "s/%CFLAGS%/${CFLAGS}/" makefile >makefile.new
|
||||
mv -f makefile makefile.orig2
|
||||
|
Loading…
Reference in New Issue
Block a user