mod_perl2 and libperl.a and -fPIC...
James R. Van Artsalen
james at jrv.org
Fri Apr 2 01:20:48 PST 2004
Peter Wemm wrote:
>Yeah, the perl5.6.1 port doesn't build a shared object, so it can't be
>embedded inside another shared object.
>
>However, the perl5.8 port does have shared object support enabled.
>
>Don't ask me why 5.6.1 doesn't do it though. :-)
>
>
Attached is a quick patch to get ports/land/perl5 to build libperl.so,
needed by many things.
patch -d /usr/ports < pat.perl
after every cvsup against ports (cvsup ports will undo the patch).
How far back has FreeBSD support shared libs? This patch blind says
4*|5* build libperl.so and everything else builds libperl.a
Grrr - I just realized this no longer builds libperl.a. Oh well, maybe
someone might find it useful.
-------------- next part --------------
--- lang/perl5/files/patch-af.~1~ Fri Nov 1 08:43:46 2002
+++ lang/perl5/files/patch-af Fri Apr 2 02:28:03 2004
@@ -1,8 +1,6 @@
-$FreeBSD: ports/lang/perl5/files/patch-af,v 1.4 2002/11/01 14:43:46 tobez Exp $
-
---- Configure.orig Mon Mar 19 04:03:33 2001
-+++ Configure Fri Nov 1 14:58:06 2002
-@@ -296,7 +296,7 @@ cppflags=''
+--- Configure.orig Sun Mar 18 21:03:33 2001
++++ Configure Fri Apr 2 02:27:20 2004
+@@ -296,7 +296,7 @@
ldflags=''
lkflags=''
locincpth=''
@@ -11,7 +9,22 @@
cf_email=''
cf_by=''
cf_time=''
-@@ -14940,7 +14940,7 @@ for i in \`$cc -v -c tmp.c 2>&1 $postpro
+@@ -6672,6 +6672,14 @@
+ ;;
+ esac
+ ;;
++ freebsd)
++ case "$osvers" in
++ 4*|5*) dflt=y
++ ;;
++ *) dflt=n
++ ;;
++ esac
++ ;;
+ *) dflt=n
+ ;;
+ esac
+@@ -14940,7 +14948,7 @@
do
case "\$i" in
-D*) echo "\$i" | $sed 's/^-D//';;
More information about the freebsd-amd64
mailing list