summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
authorPeter Prymmer <PPrymmer@factset.com>2002-06-08 16:57:05 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2002-06-09 16:01:50 +0000
commit3ca66bc263518da7c093b22b0738bef20d3da46a (patch)
tree8c04d79335bd95008d6f10f65a61733752c1958b /Makefile.SH
parentb29ac3ec7492a120a975af482af51cafe4ac25cb (diff)
downloadperl-3ca66bc263518da7c093b22b0738bef20d3da46a.tar.gz
possible band-aid for cygwin build of perl@17061
Message-ID: <OF846EEF0D.EE48F625-ON85256BD3.0002CB12@55.25.11> p4raw-id: //depot/perl@17136
Diffstat (limited to 'Makefile.SH')
-rw-r--r--Makefile.SH10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.SH b/Makefile.SH
index 07b8da07c4..7759a28a51 100644
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -378,9 +378,19 @@ perlmain.c: miniperlmain.c config.sh $(FIRSTMAKEFILE)
sh writemain $(DYNALOADER) $(static_ext) > writemain.tmp
sh mv-if-diff writemain.tmp perlmain.c
+!NO!SUBS!
+case "$osname" in
+cygwin)
+ ;; # Let cygwin/Makefile.SHs do its work.
+*)
+ $spitshell >>Makefile <<'!NO!SUBS!'
perlmain$(OBJ_EXT): perlmain.c
$(CCCMD) $(PLDLFLAGS) $*.c
+!NO!SUBS!
+ ;;
+esac
+$spitshell >>Makefile <<'!NO!SUBS!'
# The file ext.libs is a list of libraries that must be linked in
# for static extensions, e.g. -lm -lgdbm, etc. The individual
# static extension Makefile's add to it.