Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
cygwin: support libperl.dll.a without cperl
Browse files Browse the repository at this point in the history
  • Loading branch information
rurban committed Nov 4, 2018
1 parent 05118c5 commit b830fc5
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions Makefile.SH
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,13 @@ true)
-install_name \$(shrpdir)/\$@"
;;
cygwin*)
shrpldflags="$shrpldflags -Wl,--out-implib=libcperl.dll.a \
pkg=$package
if $test "$package" = "perl5"; then
pkg=perl
fi
shrpldflags="$shrpldflags -Wl,--out-implib=lib${pkg}.dll.a \
-Wl,--image-base,0x52000000"
linklibperl="-L. -lcperl"
linklibperl="-L. -l${pkg}"
;;
sunos*)
linklibperl="-lperl"
Expand All @@ -92,29 +96,29 @@ true)
aix*)
case "$cc" in
gcc*)
shrpldflags="-shared -Wl,-H512 -Wl,-T512 -Wl,-bhalt:4 -Wl,-bM:SRE -Wl,-bE:perl.exp"
case "$osvers" in
shrpldflags="-shared -Wl,-H512 -Wl,-T512 -Wl,-bhalt:4 -Wl,-bM:SRE -Wl,-bE:perl.exp"
case "$osvers" in
3*) shrpldflags="$shrpldflags -e _nostart"
;;
*) shrpldflags="$shrpldflags -Wl,-bnoentry"
;;
esac
shrpldflags="$shrpldflags $ldflags $perllibs $cryptlib"
linklibperl="-L $archlibexp/CORE -L `pwd | sed 's/\/UU$//'` -lperl"
linklibperl_nonshr='-lperl_nonshr'
;;
esac
shrpldflags="$shrpldflags $ldflags $perllibs $cryptlib"
linklibperl="-L $archlibexp/CORE -L `pwd | sed 's/\/UU$//'` -lperl"
linklibperl_nonshr='-lperl_nonshr'
;;
*)
shrpldflags="-H512 -T512 -bhalt:4 -bM:SRE -bE:perl.exp"
case "$osvers" in
shrpldflags="-H512 -T512 -bhalt:4 -bM:SRE -bE:perl.exp"
case "$osvers" in
3*) shrpldflags="$shrpldflags -e _nostart"
;;
*) shrpldflags="$shrpldflags -b noentry"
;;
esac
shrpldflags="$shrpldflags $ldflags $perllibs $cryptlib"
linklibperl="-L $archlibexp/CORE -L `pwd | sed 's/\/UU$//'` -lperl"
linklibperl_nonshr='-lperl_nonshr'
;;
esac
shrpldflags="$shrpldflags $ldflags $perllibs $cryptlib"
linklibperl="-L $archlibexp/CORE -L `pwd | sed 's/\/UU$//'` -lperl"
linklibperl_nonshr='-lperl_nonshr'
;;
esac
;;
hpux*)
Expand Down Expand Up @@ -974,10 +978,12 @@ $(LIBPERL): $& $(perllib_dep) $(DYNALOADER) $(LIBPERLEXPORT)
!NO!SUBS!
;;
cygwin) # cperl compat: make -lperl work
$spitshell >>$Makefile <<'!NO!SUBS!'
if $test "$package" != "perl5"; then
$spitshell >>$Makefile <<'!NO!SUBS!'
rm -f libperl.dll.a
ln -s libcperl.dll.a libperl.dll.a
!NO!SUBS!
fi
;;
esac
;;
Expand Down

0 comments on commit b830fc5

Please sign in to comment.