1
0
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:
Paul Traina 1996-10-07 16:57:57 +00:00
parent e2c9193b6f
commit 2d1a28c853
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=3925

View File

@ -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