i'm looking to add support for Linux on the Blackfin processor ... we use 
FDPIC ELF as our format, so naturally it'd be nice if libtool didnt get in 
our way when generating shared libraries :)
-mike

Attachment: pgpCbvJNUdMNg.pgp
Description: PGP signature

Index: libltdl/m4/libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/m4/libtool.m4,v
retrieving revision 1.86
diff -u -p -r1.86 libtool.m4
--- libltdl/m4/libtool.m4	19 Oct 2006 05:06:14 -0000	1.86
+++ libltdl/m4/libtool.m4	12 Jan 2007 22:42:08 -0000
@@ -2301,7 +2301,7 @@ linux*oldld* | linux*aout* | linux*coff*
   ;;
 
 # This must be Linux ELF.
-linux* | k*bsd*-gnu)
+linux* | uclinux* | k*bsd*-gnu)
   version_type=linux
   need_lib_prefix=no
   need_version=no
@@ -2914,7 +2914,7 @@ irix5* | irix6* | nonstopux*)
   ;;
 
 # This must be Linux ELF.
-linux* | k*bsd*-gnu)
+linux* | uclinux* | k*bsd*-gnu)
   lt_cv_deplibs_check_method=pass_all
   ;;
 
@@ -3444,6 +3444,18 @@ m4_if([$1], [CXX], [
       # it will coredump.
       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
       ;;
+    linux*)
+      # Handle ports that support FDPIC ELF instead of plain ELF
+      case $host_cpu in
+	bfin)
+	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-mfdpic'
+	  CFLAGS="$CFLAGS -mfdpic"
+	  ;;
+	*)
+	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+	  ;;
+      esac
+      ;;
     *)
       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
       ;;
@@ -3750,6 +3762,18 @@ m4_if([$1], [CXX], [
       fi
       ;;
 
+    linux*)
+      # Handle ports that support FDPIC ELF instead of plain ELF
+      case $host_cpu in
+	bfin)
+	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-mfdpic'
+	  CFLAGS="$CFLAGS -mfdpic"
+	  ;;
+	*)
+	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+	  ;;
+      esac
+      ;;
     *)
       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
       ;;
_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to