summaryrefslogtreecommitdiff
path: root/cygwin
diff options
context:
space:
mode:
authorReini Urban <rurban@x-ray.at>2008-03-08 21:55:36 +0100
committerNicholas Clark <nick@ccl4.org>2008-03-11 19:47:44 +0000
commit7e73a9801b84ea9d4c4040e65a168d6571cee339 (patch)
treee9b7a2ad5c90ea4749e2849f9757684290f86c6a /cygwin
parent09ec0e73029ccbac204a9e57a652ce1ed9ae0929 (diff)
downloadperl-7e73a9801b84ea9d4c4040e65a168d6571cee339.tar.gz
Re: Perl @ http://www.ccl4.org/~nick/P/perl-33444.tar.bz2
Message-ID: <47D2EF38.10503@x-ray.at> * CYG04 At least on cygwin strip the last number from the dll. This is in the cygwin.com build since years. p4raw-id: //depot/perl@33481
Diffstat (limited to 'cygwin')
-rw-r--r--cygwin/Makefile.SHs11
1 files changed, 10 insertions, 1 deletions
diff --git a/cygwin/Makefile.SHs b/cygwin/Makefile.SHs
index 4673d8ae1e..b360b01d0d 100644
--- a/cygwin/Makefile.SHs
+++ b/cygwin/Makefile.SHs
@@ -34,7 +34,15 @@ cygwin.c: cygwin/cygwin.c
libperl=`echo $libperl|sed -e s,\\\..*,,`
linklibperl=-l`echo $libperl|sed -e s,^lib,,`
vers=`echo $version|tr '.' '_'`
-dllname=`echo $libperl|sed -e s,^lib,cyg,`$vers
+dllname=`echo $libperl|sed -e s,^lib,cyg,``echo $vers|sed -e s,_[0-9]$,,`
+# append "d" suffix to -DDEBUGGING build: cygperl5_10d.dll
+case $config_args in
+ *DEBUGGING*)
+ dllname="${dllname}"d
+ ;;
+esac
+# added -mms-bitfields to be able to link to MSVC win32 bitfields libs
+# (4 byte instead of 2 byte alignment)
$spitshell >>Makefile <<!GROK!THIS!
LIBPERL = $libperl
@@ -42,6 +50,7 @@ LLIBPERL= $linklibperl
DLLNAME= $dllname
CLDFLAGS= -L$addtopath $ldflags
LDDLFLAGS = --shared -L$addtopath $ldflags
+CCFLAGS=$ccflags -mms-bitfields
PLDLFLAGS =
CAT = $cat
AWK = $awk