From: Loren J. Rittle Date: Wed, 11 Apr 2001 16:15:09 +0000 (+0000) Subject: * ltcf-cxx.sh: Support creation of C++ shared libraries on X-Git-Tag: multi-language-merge-point~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=23ec3c925da42becc46aa502e058d3e63ebb9151;p=thirdparty%2Flibtool.git * 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. --- diff --git a/ChangeLog b/ChangeLog index 12b6b0086..39c85e354 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2001-04-11 Loren J. Rittle + + * 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 * AUTHORS: Added myself to the list of maintainers. diff --git a/ltcf-cxx.sh b/ltcf-cxx.sh index 7ab9feee8..d135a1800 100644 --- a/ltcf-cxx.sh +++ b/ltcf-cxx.sh @@ -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=: diff --git a/ltconfig.in b/ltconfig.in index 925b5e779..4ca139f92 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -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-*)