summaryrefslogtreecommitdiff
path: root/x2p
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>2010-10-13 13:27:12 -0400
committerAndy Dougherty <doughera@lafayette.edu>2010-10-14 08:29:43 -0400
commit939767c9d84f9288c260508432b50879f71e1d3b (patch)
tree749772a89363c6cb9d6e7cf28bbd24045e93e764 /x2p
parent8525cfaee6f338e972e8c944b87855a29a5b67c3 (diff)
downloadperl-939767c9d84f9288c260508432b50879f71e1d3b.tar.gz
Fix x2p and utils dependencies for static builds
The x2p and utils .PL extractions use the Cwd module, which is not available in miniperl in a static build. (For a dynamic build, miniperl only loads the pure perl portion of Cwd, but building the whole extension ensures that the pure perl part is correctly built and available. It might be cleaner just to always require the full perl.)
Diffstat (limited to 'x2p')
-rwxr-xr-xx2p/Makefile.SH13
1 files changed, 10 insertions, 3 deletions
diff --git a/x2p/Makefile.SH b/x2p/Makefile.SH
index 296fdc8efc..127d6f922f 100755
--- a/x2p/Makefile.SH
+++ b/x2p/Makefile.SH
@@ -26,6 +26,14 @@ esac
echo "Extracting x2p/Makefile (with variable substitutions)"
rm -f Makefile
+
+# The .PL extractions use the Cwd extension. For statically-built
+# perls, we need perl, not just miniperl.
+case "$usedl" in
+ define) perl="../miniperl" ;;
+ *) perl="../perl" ;;
+esac
+
cat >Makefile <<!GROK!THIS!
# $RCSfile: Makefile.SH,v $$Revision: 4.1 $$Date: 92/08/07 18:29:07 $
#
@@ -63,6 +71,7 @@ OPTIMIZE = $optimize
.SUFFIXES: .c \$(OBJ_EXT)
RUN = $run
+PERL = $perl
!GROK!THIS!
@@ -173,10 +182,8 @@ hlist:
shlist:
echo $(sh) | tr ' ' $(TRNL) >.shlist
-# These should be automatically generated
-
$(plextract):
- $(RUN) ../miniperl -I../lib $@.PL
+ $(RUN) $(PERL) -I../lib $@.PL
find2perl: find2perl.PL