summaryrefslogtreecommitdiff
path: root/cflags.SH
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-09-10 17:07:04 +0000
committerNicholas Clark <nick@ccl4.org>2005-09-10 17:07:04 +0000
commit69c7f29429723a0fefb4c8c01f5406c96beb31dc (patch)
treeb9623b5ae30b198ee2fef986b38d2022860f5b75 /cflags.SH
parentdf805c3ec4f4a47f66c26574a4bd6585a96b1afe (diff)
downloadperl-69c7f29429723a0fefb4c8c01f5406c96beb31dc.tar.gz
Experiment with putting the F<.patch>level into patchlevel.h
(a sure way to accelerate any change to subversion) p4raw-id: //depot/perl@25374
Diffstat (limited to 'cflags.SH')
-rwxr-xr-xcflags.SH4
1 files changed, 4 insertions, 0 deletions
diff --git a/cflags.SH b/cflags.SH
index 5a6a7065c7..6c26025379 100755
--- a/cflags.SH
+++ b/cflags.SH
@@ -165,6 +165,10 @@ Intel*) ;;
;;
esac
+if test -f .patch; then
+ ccflags="-DPERL_PATCHNUM=`cat .patch` $ccflags"
+fi
+
: Can we perhaps use $ansi2knr here
echo "$cc -c -DPERL_CORE $ccflags $optimize $warn"
eval "$also "'"$cc -DPERL_CORE -c $ccflags $optimize $warn"'