diff options
-rwxr-xr-x | cflags.SH | 4 | ||||
-rw-r--r-- | patchlevel.h | 7 |
2 files changed, 8 insertions, 3 deletions
@@ -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 }; |