summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorCarl Hayter <hayter@usc.edu>2011-11-24 17:49:50 +0100
committerNicholas Clark <nick@ccl4.org>2011-12-03 13:34:21 +0100
commitc29067d7797853039f1acba2cddf71786ecd4b16 (patch)
tree3c2a8bc2310ecb9528f1de4ac9ef97cb0827e71d /embed.h
parent7e1dab6a61131a77ad847a43dacb66e48b0ab716 (diff)
downloadperl-c29067d7797853039f1acba2cddf71786ecd4b16.tar.gz
Make sitecustomize relocatableinc aware
When -Dusesitecustomize is used with -Duserelocatableinc, SITELIB_EXP/sitecustomize.pl is not found due to SITELIB_EXP having a '.../..' relocation path. This patch refactors the path relocation code from S_incpush() into S_mayberelocate() so that it can be used in both S_incpush() and in usesitecustomize's use of SITELIB_EXP.
Diffstat (limited to 'embed.h')
-rw-r--r--embed.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/embed.h b/embed.h
index b741b1c419..d29c18a982 100644
--- a/embed.h
+++ b/embed.h
@@ -1415,6 +1415,7 @@
#define init_perllib() S_init_perllib(aTHX)
#define init_postdump_symbols(a,b,c) S_init_postdump_symbols(aTHX_ a,b,c)
#define init_predump_symbols() S_init_predump_symbols(aTHX)
+#define mayberelocate(a,b,c) S_mayberelocate(aTHX_ a,b,c)
#define my_exit_jump() S_my_exit_jump(aTHX)
#define nuke_stacks() S_nuke_stacks(aTHX)
#define open_script(a,b,c,d) S_open_script(aTHX_ a,b,c,d)