summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.SH')
-rw-r--r--Makefile.SH18
1 files changed, 15 insertions, 3 deletions
diff --git a/Makefile.SH b/Makefile.SH
index ae96f3013d..aa0e3f278e 100644
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -46,6 +46,9 @@ true)
rhapsody*)
ldlibpth="DYLD_LIBRARY_PATH=`pwd`/Perl:$DYLD_LIBRARY_PATH"
;;
+ cygwin*) ldlibpth="PATH=`pwd`:$PATH"
+ linklibperl="-lperl"
+ ;;
os2*) # OS/2 doesn't need anything special for LD_LIBRARY_PATH.
ldlibpth=''
;;
@@ -296,11 +299,20 @@ ext.libs: $(static_ext)
# How to build libperl. This is still rather convoluted.
# Load up custom Makefile.SH fragment for shared loading and executables:
-if test -r $osname/Makefile.SHs ; then
- . $osname/Makefile.SHs
+case "$osname" in
+cygwin*)
+ Makefile_s="cygwin32/Makefile.SHs"
+ ;;
+*)
+ Makefile_s="$osname/Makefile.SHs"
+ ;;
+esac
+
+if test -r $Makefile_s ; then
+ . $Makefile_s
$spitshell >>Makefile <<!GROK!THIS!
-Makefile: $osname/Makefile.SHs
+Makefile: $Makefile_s
!GROK!THIS!
else
$spitshell >>Makefile <<'!NO!SUBS!'