]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Avoid problems when FreeBSD goes to version 10.
authorXin LI <d@delphij.net>
Sun, 2 Oct 2011 15:02:18 +0000 (10:02 -0500)
committerPeter O'Gorman <peter@pogma.com>
Sun, 2 Oct 2011 15:02:18 +0000 (10:02 -0500)
* libltdl/m4/libtool.m4: Remove mentions of freebsd1. Use dots
for FreeBSD 2 and 3 detection to avoid future problems
* libltdl/m4/ltmain.m4sh: ditto.

ChangeLog
libltdl/config/ltmain.m4sh
libltdl/m4/libtool.m4

index d3e6e7db36f2be4467e796c158d3df2b78348376..150486e1f088b7111aee6b5888a3b51f098f4027 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-10-02  Xin LI <d@delphij.net>
+
+       Avoid problems when FreeBSD goes to version 10.
+       * libltdl/m4/libtool.m4: Remove mentions of freebsd1. Use dots
+       for FreeBSD 2 and 3 detection to avoid future problems
+       * libltdl/m4/ltmain.m4sh: ditto.
+
 2011-09-25  Cristophe Jarry <christophe.jarry@ouvaton.org>
 
        Avoid mentioning "Linux", use "GNU/Linux", if appropriate.
index 511480f9a5c1c6978f35d074e8434299110d9e1d..be379782842ee3a905fbdd81e5a5c8871af4b93f 100644 (file)
@@ -2686,7 +2686,7 @@ static const void *lt_preloaded_setup() {
          # linked before any other PIC object.  But we must not use
          # pic_flag when linking with -static.  The problem exists in
          # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
-         *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
+         *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
            pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
          *-*-hpux*)
            pic_flag_for_symtable=" $pic_flag"  ;;
index 350fbe174a127154955e6aac82b91ede9927dcce..0de7f3c53948b47b772e938c0128f2bd2de83a67 100644 (file)
@@ -2475,7 +2475,7 @@ freebsd* | dragonfly*)
     objformat=`/usr/bin/objformat`
   else
     case $host_os in
-    freebsd[[123]]*) objformat=aout ;;
+    freebsd[[23]].*) objformat=aout ;;
     *) objformat=elf ;;
     esac
   fi
@@ -2493,7 +2493,7 @@ freebsd* | dragonfly*)
   esac
   shlibpath_var=LD_LIBRARY_PATH
   case $host_os in
-  freebsd2*)
+  freebsd2.*)
     shlibpath_overrides_runpath=yes
     ;;
   freebsd3.[[01]]* | freebsdelf3.[[01]]*)
@@ -5200,7 +5200,7 @@ _LT_EOF
       ;;
 
     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
-    freebsd2*)
+    freebsd2.*)
       _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
       _LT_TAGVAR(hardcode_direct, $1)=yes
       _LT_TAGVAR(hardcode_minus_L, $1)=yes
@@ -6206,7 +6206,7 @@ if test "$_lt_caught_CXX_error" != yes; then
         esac
         ;;
 
-      freebsd[[12]]*)
+      freebsd2.*)
         # C++ shared libraries reported to be fairly broken before
        # switch to ELF
         _LT_TAGVAR(ld_shlibs, $1)=no