summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcflags.SH4
-rw-r--r--patchlevel.h7
2 files changed, 8 insertions, 3 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"'
diff --git a/patchlevel.h b/patchlevel.h
index 86b87be4f4..5b118cf3af 100644
--- a/patchlevel.h
+++ b/patchlevel.h
@@ -114,13 +114,14 @@ hunk.
*/
-
-
+#ifndef PERL_PATCHNUM
+#define PERL_PATCHNUM 24148
+#endif
#if !defined(PERL_PATCHLEVEL_H_IMPLICIT) && !defined(LOCAL_PATCH_COUNT)
static const char * const local_patches[] = {
NULL
- ,"DEVEL24148"
+ ,"DEVEL" STRINGIFY(PERL_PATCHNUM)
,NULL
};