updated patches

Brook Milligan brook@trillium.NMSU.Edu
Mon, 1 Mar 1999 14:39:14 -0700 (MST)


Well, after some messing around I fixed bioperl to compile on a NetBSD
1.3.2/i386 box.  The 2 correct patches are below.  It would seem that
both patches should be applied as I don't really think they have
anything to do with NetBSD per se.  The first corrects a loop in the
make dependency; the second ensures that the library gets relocatable
objects needed for a shared library.  Should be the same across all
platforms, I would guess.  If not, the -fPIC flag should come from
some configurable makefile (e.g., Makefile.PL?) rather than be
universally excluded.

Please add this platform to your PLATFORMS file.

Cheers,
Brook

===========================================================================

--- Compile/SW/Makefile.PL.orig	Fri Dec 11 08:24:25 1998
+++ Compile/SW/Makefile.PL	Mon Mar  1 11:37:15 1999
@@ -13,9 +13,9 @@
 
 sub MY::postamble{
 '
-$(MYEXTLIB): libs/libsw$(LIB_EXT)
+$(MYEXTLIB):
 	DEFINE=\'$(DEFINE)\'; CC=\'$(PERLMAINCC)\'; export DEFINE INC CC; \
-	cd libs && $(MAKE) libsw.a -e
+	cd libs && $(MAKE) libsw$(LIB_EXT) -e
 
 ';
 }

===========================================================================

--- Compile/SW/libs/makefile.orig	Fri Dec 11 08:24:29 1998
+++ Compile/SW/libs/makefile	Mon Mar  1 13:15:53 1999
@@ -54,5 +54,5 @@
 wisefile.o : wisefile.c
 	$(CC) $(CFLAGS) -DNOERROR wisefile.c
 
-CFLAGS = -c -O
+CFLAGS = -c -O -fPIC
 CC     = cc

=========== Bioperl Project Mailing List Message Footer =======
Project URL: http://bio.perl.org
For info about how to (un)subscribe, where messages are archived, etc:
http://www.techfak.uni-bielefeld.de/bcd/Perl/Bio/vsns-bcd-perl-guts.html
====================================================================