diff options
author | Steve Hay <SteveHay@planit.com> | 2005-03-31 14:36:44 +0000 |
---|---|---|
committer | Steve Hay <SteveHay@planit.com> | 2005-03-31 14:36:44 +0000 |
commit | 7ada00a0afea1d7eec1411de227ec2e27211e619 (patch) | |
tree | b2a4a63866a0c3557bdb8009cf15a9ed7b742fc3 /win32/Makefile | |
parent | c9600ef6e2cd7967f2222c00f685d20ad6d49ec3 (diff) | |
download | perl-7ada00a0afea1d7eec1411de227ec2e27211e619.tar.gz |
Add support for USE_SITECUSTOMIZE in the Win32 makefiles
Note that this feature doesn't actually work correctly on Win32
until the problem described here is solved:
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2005-03/msg00740.html
p4raw-id: //depot/perl@24120
Diffstat (limited to 'win32/Makefile')
-rw-r--r-- | win32/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/win32/Makefile b/win32/Makefile index d63d6023b9..a062526a24 100644 --- a/win32/Makefile +++ b/win32/Makefile @@ -46,6 +46,14 @@ INST_TOP = $(INST_DRV)\perl #INST_ARCH = \$(ARCHNAME) # +# Uncomment this if you want perl to run +# $Config{sitelibexp}\sitecustomize.pl +# before anything else. This script can then be set up, for example, +# to add additional entries to @INC. +# +#USE_SITECUST = define + +# # uncomment to enable multiple interpreters. This is need for fork() # emulation and for thread support. # @@ -160,6 +168,7 @@ 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 @@ -234,6 +243,10 @@ DEBUG_MSTATS = undef BUILDOPT = $(BUILDOPT) -DPERL_DEBUGGING_MSTATS !ENDIF +!IF "$(USE_SITECUST)" == "" +USE_SITECUST = undef +!ENDIF + !IF "$(USE_MULTI)" == "" USE_MULTI = undef !ENDIF @@ -266,6 +279,10 @@ USE_MULTI = define USE_MULTI = define !ENDIF +!IF "$(USE_SITECUST)" == "define" +BUILDOPT = $(BUILDOPT) -DUSE_SITECUSTOMIZE +!ENDIF + !IF "$(USE_MULTI)" != "undef" BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT !ENDIF @@ -835,6 +852,7 @@ CFG_VARS = \ "usemultiplicity=$(USE_MULTI)" \ "useperlio=$(USE_PERLIO)" \ "uselargefiles=$(USE_LARGE_FILES)" \ + "usesitecustomize=$(USE_SITECUST)" \ "LINK_FLAGS=$(LINK_FLAGS:"=\")" \ "optimize=$(OPTIMIZE:"=\")" |