summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.SH10
-rw-r--r--README.cygwin2
2 files changed, 10 insertions, 2 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.
diff --git a/README.cygwin b/README.cygwin
index 72a4dd1aec..026da0d58b 100644
--- a/README.cygwin
+++ b/README.cygwin
@@ -502,8 +502,6 @@ be kept as clean as possible (listing not updated yet).
=head1 BUGS ON CYGWIN
-When I<make> starts, it warns about overriding commands for F<perlmain.o>.
-
Support for swapping real and effective user and group IDs is incomplete.
On WinNT Cygwin provides setuid(), seteuid(), setgid() and setegid().
However, additional Cygwin calls for manipulating WinNT access tokens