]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltcf-cxx.sh: Support creation of C++ shared libraries on
authorLoren J. Rittle <ljrittle@acm.org>
Wed, 11 Apr 2001 16:15:09 +0000 (16:15 +0000)
committerOssama Othman <ossama@debian.org>
Wed, 11 Apr 2001 16:15:09 +0000 (16:15 +0000)
recent versions of FreeBSD (release 3 or later).
* ltconfig.in: On FreeBSD, -lc must not be provided when building
a shared library or else the standard -pthread gcc option is
rendered worthless to later users of the built library.

ChangeLog
ltcf-cxx.sh
ltconfig.in

index 12b6b0086cefa0bb1f72a90888577b1694158a3a..39c85e3542de5b71372d536cd9b5aaf152392609 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-04-11  Loren J. Rittle  <ljrittle@acm.org>
+
+       * ltcf-cxx.sh: Support creation of C++ shared libraries on
+       recent versions of FreeBSD (release 3 or later).
+       * ltconfig.in: On FreeBSD, -lc must not be provided when building
+       a shared library or else the standard -pthread gcc option is
+       rendered worthless to later users of the built library.
+
 2001-04-11  Ossama Othman  <ossama@uci.edu>
 
        * AUTHORS: Added myself to the list of maintainers.
index 7ab9feee882b2e11ae706e7ba11f2b2ff75ee469..d135a1800ced4c4c9f80d31c281c0056aeeee53b 100644 (file)
@@ -233,11 +233,15 @@ case $host_os in
         ;;
     esac
     ;;
-  freebsd*)
-    # FreeBSD uses GNU C++ and GNU ld
-    # FIXME: insert proper C++ library support
+  freebsd[12]*)
+    # C++ shared libraries reported to be fairly broken before switch to ELF
     ld_shlibs=no
     ;;
+  freebsd*)
+    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
+    # conventions
+    ld_shlibs=yes
+    ;;
   hpux*)
     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
     hardcode_libdir_separator=:
index 925b5e77953808df9d3e7f9ef52354e0aa412797..4ca139f92d23a07fb362cc17dfe1f2230ca98e48 100755 (executable)
@@ -1117,6 +1117,7 @@ freebsd*)
     freebsd-elf*)
       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
       need_version=no
+      need_lc=no
       need_lib_prefix=no
       ;;
     freebsd-*)