Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Apr 2004 03:20:46 -0600
From:      "James R. Van Artsalen" <james@jrv.org>
To:        Peter_Losher@isc.org
Cc:        freebsd-amd64@freebsd.org
Subject:   Re: mod_perl2 and libperl.a and -fPIC...
Message-ID:  <406D306E.6090509@jrv.org>
In-Reply-To: <200403310028.02495.peter@wemm.org>
References:  <20040331074508.M42491@farside.isc.org> <200403310028.02495.peter@wemm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------090009030007010109050409
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

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.

--------------090009030007010109050409
Content-Type: text/plain;
 name="pat.perl"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="pat.perl"

--- 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//';;

--------------090009030007010109050409--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?406D306E.6090509>