aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/perl5/files/patch-ah
blob: 0cc7667c4c512026e2efca3dd2260448043a2b1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- Makefile.SH.orig    Fri May  7 22:06:24 1999
+++ Makefile.SH Fri May  7 22:26:31 1999
@@ -51,9 +51,18 @@
    sunos*)
        linklibperl="-lperl"
        ;;
-   netbsd*|freebsd[234]*)
+   netbsd*)
        linklibperl="-L. -lperl"
        ;;
+   freebsd*)
+       linklibperl="-L. -lperl"
+       if [ -x /usr/bin/objformat ]; then
+           objformat=`/usr/bin/objformat`
+       else
+           objformat=aout
+       fi
+       [ x$objformat = xelf ] && shrpldflags="${shrpldflags} -Wl,-soname,${libperl}"
+       ;;
    aix*)
        shrpldflags="-H512 -T512 -bhalt:4 -bM:SRE -bE:perl.exp"
        case "$osvers" in
@@ -305,12 +314,17 @@
        $spitshell >>Makefile <<'!NO!SUBS!'
    $(LD) $(SHRPLDFLAGS) -o $@ perl$(OBJ_EXT) $(obj)
 !NO!SUBS!
-       case "$osname" in
-       aix)
+       case "${osname}${osvers}" in
+       aix*)
            $spitshell >>Makefile <<'!NO!SUBS!'
    rm -f libperl$(OBJ_EXT)
    mv $@ libperl$(OBJ_EXT)
    $(AR) qv $(LIBPERL) libperl$(OBJ_EXT)
+!NO!SUBS!
+           ;;
+       freebsd*)
+           $spitshell >>Makefile <<'!NO!SUBS!'
+   $(LNS) $(LIBPERL) libperl.so
 !NO!SUBS!
            ;;
        esac