summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-12-21 15:47:26 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-12-21 15:47:26 +0000
commit4ba7095c8b1e78642662b76b43ac3fa8cbda5537 (patch)
tree64079ec2b7f69684200a6694d7556804680117ef /Makefile.SH
parentdafca956013a09f7b5201b464199f47cf100f00f (diff)
downloadperl-4ba7095c8b1e78642662b76b43ac3fa8cbda5537.tar.gz
Robustness support for #8218 (symlink forest) since the GNU
tools seem to be overly picky about symlinkage depths. p4raw-id: //depot/perl@8220
Diffstat (limited to 'Makefile.SH')
-rw-r--r--Makefile.SH7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.SH b/Makefile.SH
index f9ae6b72a1..5c543355bf 100644
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -137,6 +137,7 @@ CLDFLAGS = $ldflags
mallocsrc = $mallocsrc
mallocobj = $mallocobj
LNS = $lns
+CPS = $cp -f
RMS = rm -f
ranlib = $ranlib
@@ -300,9 +301,13 @@ utilities: miniperl lib/Config.pm $(plextract) lib/lib.pm FORCE
FORCE:
@sh -c true
+# We do a copy of the op.c instead of a symlink because gcc gets huffy
+# if we have a symlink forest to another disk (it complains about too many
+# levels of symbolic links, even if we have only two)
+
opmini$(OBJ_EXT): op.c config.h
$(RMS) opmini.c
- $(LNS) op.c opmini.c
+ $(CPS) op.c opmini.c
$(CCCMD) $(PLDLFLAGS) -DPERL_EXTERNAL_GLOB opmini.c
$(RMS) opmini.c