From 2eb87578b6bf9c2a989b418d4847ad2dfbec21d8 Mon Sep 17 00:00:00 2001 From: Steve Hay Date: Thu, 31 Mar 2005 10:01:18 +0000 Subject: [PATCH] Add support for PERL_HASH_SEED_EXPLICIT and NO_HASH_SEED in the Win32 makefiles p4raw-id: //depot/perl@24113 --- win32/Makefile | 9 +++++++++ win32/makefile.mk | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/win32/Makefile b/win32/Makefile index 93bcd87..d63d602 100644 --- a/win32/Makefile +++ b/win32/Makefile @@ -160,6 +160,15 @@ CCLIBDIR = $(CCHOME)\lib # Additional compiler flags can be specified here. # +# Adding -DPERL_HASH_SEED_EXPLICIT will disable randomization of Perl's +# internal hash function unless the PERL_HASH_SEED environment variable is set. +# Alternatively, adding -DNO_HASH_SEED will completely disable the +# randomization feature. +# The latter is required to maintain binary compatibility with Perl 5.8.0. +# +#BUILDOPT = $(BUILDOPT) -DPERL_HASH_SEED_EXPLICIT +#BUILDOPT = $(BUILDOPT) -DNO_HASH_SEED + # # This should normally be disabled. Adding -DPERL_POLLUTE enables support # for old symbols by default, at the expense of extreme pollution. You most diff --git a/win32/makefile.mk b/win32/makefile.mk index 9159f1d..9e11fec 100644 --- a/win32/makefile.mk +++ b/win32/makefile.mk @@ -186,6 +186,16 @@ CCLIBDIR *= $(CCHOME)\lib # # +# Adding -DPERL_HASH_SEED_EXPLICIT will disable randomization of Perl's +# internal hash function unless the PERL_HASH_SEED environment variable is set. +# Alternatively, adding -DNO_HASH_SEED will completely disable the +# randomization feature. +# The latter is required to maintain binary compatibility with Perl 5.8.0. +# +#BUILDOPT += -DPERL_HASH_SEED_EXPLICIT +#BUILDOPT += -DNO_HASH_SEED + +# # This should normally be disabled. Adding -DPERL_POLLUTE enables support # for old symbols by default, at the expense of extreme pollution. You most # probably just want to build modules that won't compile with -- 2.7.4