summaryrefslogtreecommitdiffstats
path: root/contrib/perl5/cflags.SH
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2000-06-25 11:04:01 +0000
committermarkm <markm@FreeBSD.org>2000-06-25 11:04:01 +0000
commit2618fad5bbb2d0182eb31ed805c41b543c513940 (patch)
tree52ba93338b13aefd02a0055304a9eccfa0e049f5 /contrib/perl5/cflags.SH
parent77644ee620b6a79cf8c538abaf7cd301a875528d (diff)
downloadFreeBSD-src-2618fad5bbb2d0182eb31ed805c41b543c513940.zip
FreeBSD-src-2618fad5bbb2d0182eb31ed805c41b543c513940.tar.gz
Vendor import of Perl 5.006
Diffstat (limited to 'contrib/perl5/cflags.SH')
-rwxr-xr-xcontrib/perl5/cflags.SH10
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/perl5/cflags.SH b/contrib/perl5/cflags.SH
index 8a1ba82..ec6dc35 100755
--- a/contrib/perl5/cflags.SH
+++ b/contrib/perl5/cflags.SH
@@ -28,7 +28,7 @@ $startsh
: In the following dollars and backticks do not need the extra backslash.
$spitshell >>cflags <<'!NO!SUBS!'
-case $CONFIG in
+case $CONFIGDOTSH in
'')
if test -f config.sh; then TOP=.;
elif test -f ../config.sh; then TOP=..;
@@ -65,7 +65,7 @@ case $# in
0) set *.c; echo "The current C flags are:" ;;
esac
-set `echo "$* " | sed -e 's/\.[oc] / /g' -e 's/\.obj / /g'`
+set `echo "$* " | sed -e 's/\.[oc] / /g' -e 's/\.obj / /g' -e "s/\\$obj_ext / /g"`
for file do
@@ -76,7 +76,10 @@ for file do
: allow variables like toke_cflags to be evaluated
- eval 'eval ${'"${file}_cflags"'-""}'
+ if echo $file | grep -v / >/dev/null
+ then
+ eval 'eval ${'"${file}_cflags"'-""}'
+ fi
: or customize here
@@ -102,6 +105,7 @@ for file do
miniperlmain) ;;
op) ;;
perl) ;;
+ perlapi) ;;
perlmain) ;;
perly) ;;
pp) ;;
OpenPOWER on IntegriCloud