freebsd-ports/lang/perl5.6/files/patch-af
Anton Berezin 5a1e2b69e5 Make perl's configure be aware of gcc command line syntax change from
-Acpu(i386) to -Acpu=i386 and similar.

The patch is from Perlland:
http://archive.develooper.com/perl5-porters@perl.org/msg79350.html

While at it, add $ FreeBSD $ to the rest of the patches.

Reported by:	kuriyama
2002-11-01 14:43:46 +00:00

22 lines
557 B
Text

$FreeBSD$
--- Configure.orig Mon Mar 19 04:03:33 2001
+++ Configure Fri Nov 1 14:58:06 2002
@@ -296,7 +296,7 @@ cppflags=''
ldflags=''
lkflags=''
locincpth=''
-optimize=''
+optimize=${CFLAGS:-''}
cf_email=''
cf_by=''
cf_time=''
@@ -14940,7 +14940,7 @@ for i in \`$cc -v -c tmp.c 2>&1 $postpro
do
case "\$i" in
-D*) echo "\$i" | $sed 's/^-D//';;
- -A*) $test "$gccversion" && echo "\$i" | $sed 's/^-A\(.*\)(\(.*\))/\1=\2/';;
+ -A*) $test "$gccversion" && echo "\$i" | $sed 's/^-A//' | $sed 's/\(.*\)(\(.*\))/\1=\2/';;
esac
done
$rm -f try.c