[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PATCH: Support C++ and threading libraries on FreeBSD 3 and later
From: |
Loren James Rittle |
Subject: |
PATCH: Support C++ and threading libraries on FreeBSD 3 and later |
Date: |
Wed, 11 Apr 2001 01:14:06 -0500 (CDT) |
User-agent: |
SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/20.5 (i386-unknown-freebsdelf3.2) MULE/4.0 (HANANOEN) |
Recently, gcc upgraded to libtool 1.4a and it came to my attention
that these system configuration patches, which had been in that tree
to better support recent versions of FreeBSD, were missing.
I first submitted them to libtool-patches back in November 2000 but I
may not have stressed their importance or that they had been approved
by multiple gcc developers and FreeBSD developers.
Could they be applied to the master libtool source tree?
Thank you,
Loren
2001-04-10 Loren J. Rittle <address@hidden>
* ltcf-cxx.sh: Support creation of C++ shared libraries on
recent versions of FreeBSD (release 3 or later).
* ltconfig: 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.
Index: ltconfig
===================================================================
RCS file: /cvs/gcc/egcs/ltconfig,v
retrieving revision 1.16
diff -c -r1.16 ltconfig
*** ltconfig 2001/03/22 06:48:31 1.16
--- ltconfig 2001/04/11 03:40:43
***************
*** 1108,1113 ****
--- 1108,1114 ----
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-*)
Index: ltcf-cxx.sh
===================================================================
RCS file: /cvs/gcc/egcs/ltcf-cxx.sh,v
retrieving revision 1.14
diff -c -r1.14 ltcf-cxx.sh
*** ltcf-cxx.sh 2001/03/22 18:13:39 1.14
--- ltcf-cxx.sh 2001/04/11 03:40:43
***************
*** 233,242 ****
;;
esac
;;
! freebsd*)
! # FreeBSD uses GNU C++ and GNU ld
! # FIXME: insert proper C++ library support
ld_shlibs=no
;;
hpux*)
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
--- 233,246 ----
;;
esac
;;
! 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'
- PATCH: Support C++ and threading libraries on FreeBSD 3 and later,
Loren James Rittle <=