summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1997-05-01 00:00:00 +1200
committerChip Salzenberg <chip@atlantic.net>1997-05-01 00:00:00 +1200
commit3c321fdc92fa7fcff30f2f06cb61271e1d020eaa (patch)
tree38505e38b12d9b3779debd123101f3dbd67cf812 /Makefile.SH
parent3e07908ea1eeba49c73de370640833193accfd6e (diff)
downloadperl-3c321fdc92fa7fcff30f2f06cb61271e1d020eaa.tar.gz
[inseparable changes from match from perl-5.003_98 to perl-5.003_99]
CORE PORTABILITY Subject: NeXT hints update Date: Thu, 1 May 97 00:28:41 +0200 From: Unknown Contributor <hansm@euronet.nl> Files: Configure Makefile.SH hints/next_4.sh private-msgid: 199704302229.AAA02690@mail.euronet.nl Subject: Support shared libperl on AIX Date: Sat, 26 Apr 1997 20:31:37 -0500 From: Eric Bartley <bartley@icd.cc.purdue.edu> Files: Configure Makefile.SH hints/aix.sh Msg-ID: 199704270131.UAA51426@icd.cc.purdue.edu (applied based on p5p patch as commit 019c9bb5516c92cceeeb4b050fa8075a1359c43c)
Diffstat (limited to 'Makefile.SH')
-rwxr-xr-xMakefile.SH25
1 files changed, 21 insertions, 4 deletions
diff --git a/Makefile.SH b/Makefile.SH
index db4e759da8..ec99d02e5c 100755
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -24,19 +24,27 @@ case "$d_dosuid" in
esac
linklibperl='$(LIBPERL)'
+shrpldflags='$(LDDLFLAGS)'
case "$useshrplib" in
true)
pldlflags="$cccdlflags"
# NeXT-4 specific stuff. Can't we do this in the hint file?
case "${osname}${osvers}" in
next4*)
- ld='libtool -dynamic -undefined warning -framework System \
- -compatibility_version 1 -current_version $(PATCHLEVEL) \
- -prebind -seg1addr 0x27000000 -install_name $(SHRPDIR)/$@'
+ ld=libtool
+ lddlflags="-dynamic -undefined warning -framework System \
+ -compatibility_version 1 -current_version $patchlevel \
+ -prebind -seg1addr 0x27000000 -install_name \$(shrpdir)/\$@"
;;
sunos*|freebsd[23]*|netbsd*)
linklibperl="-lperl"
;;
+ aix*)
+ shrpldflags="-H512 -T512 -bhalt:4 -bM:SRE -bE:perl.exp"
+ shrpldflags="$shrpldflags -b noentry $ldflags $libs $cryptlib"
+ aixinstdir=`pwd | sed 's/\/UU$//'`
+ linklibperl="-L $archlibexp/CORE -L $aixinstdir -lperl"
+ ;;
esac
;;
*) pldlflags=''
@@ -98,6 +106,7 @@ man3ext = $man3ext
# The following are used to build and install shared libraries for
# dynamic loading.
LDDLFLAGS = $lddlflags
+SHRPLDFLAGS = $shrpldflags
CCDLFLAGS = $ccdlflags
DLSUFFIX = .$dlext
PLDLFLAGS = $pldlflags
@@ -248,8 +257,16 @@ $(LIBPERL): $& perl$(OBJ_EXT) $(obj)
case "$useshrplib" in
true)
$spitshell >>Makefile <<'!NO!SUBS!'
- $(LD) $(LDDLFLAGS) -o $@ perl$(OBJ_EXT) $(obj)
+ $(LD) $(SHRPLDFLAGS) -o $@ perl$(OBJ_EXT) $(obj)
+!NO!SUBS!
+ case "$osname" in
+ aix)
+ $spitshell >>Makefile <<'!NO!SUBS!'
+ mv $@ libperl$(OBJ_EXT)
+ $(AR) qv $(LIBPERL) libperl$(OBJ_EXT)
!NO!SUBS!
+ ;;
+ esac
;;
*)
$spitshell >>Makefile <<'!NO!SUBS!'