diff options
author | Tony Cook <tony@develop-help.com> | 2011-03-29 21:32:52 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2011-05-20 21:36:53 +1000 |
commit | de4c0096ebdaf46695cc56e6e72c823fc693d433 (patch) | |
tree | 238a9ca902f48bb917c81af86a46613106d30cf6 /Makefile.SH | |
parent | 6c5941c785207c7779c0d0f98546b9e4ada88064 (diff) | |
download | perl-de4c0096ebdaf46695cc56e6e72c823fc693d433.tar.gz |
handle a static Cwd when generating the deps for x2p/utils
Diffstat (limited to 'Makefile.SH')
-rwxr-xr-x | Makefile.SH | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile.SH b/Makefile.SH index eac337c1b3..2567f8bbff 100755 --- a/Makefile.SH +++ b/Makefile.SH @@ -164,6 +164,14 @@ EOT ;; esac +: is Cwd static or dynamic +static_cwd='define' +for f in $dynamic_ext; do + case $f in + Cwd) static_cwd='undef' ;; + esac +done + : Prepare dependency lists for Makefile. dynamic_list=' ' dynamic_ext_re="lib/auto/re/re.$dlext" @@ -551,11 +559,15 @@ perl$(OBJ_EXT): git_version.h # Making utilities and translators require Cwd. If we have dynamic # loading, we only need miniperl and Cwd.$dlext. If we have static # loading, we need to build perl first. -case "$usedl" in -define) +case "$usedl$static_cwd" in +defineundef) util_deps='$(MINIPERL_EXE) $(CONFIGPM) lib/auto/Cwd/Cwd$(DLSUFFIX) FORCE' x2p_deps='$(MINIPERL_EXE) $(CONFIGPM) $(dynamic_ext) FORCE' ;; +definedefine) + util_deps='$(PERL_EXE) $(CONFIGPM) FORCE' + x2p_deps='$(PERL_EXE) $(CONFIGPM) $(dynamic_ext) FORCE' + ;; *) util_deps='$(PERL_EXE) $(CONFIGPM) FORCE' x2p_deps='$(PERL_EXE) $(CONFIGPM) FORCE' ;; |