From owner-freebsd-current Sat Jan 23 14:51:57 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA27721 for freebsd-current-outgoing; Sat, 23 Jan 1999 14:51:57 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from zippy.dyn.ml.org (tokyo-29.ppp.hooked.net [206.169.229.29]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA27714 for ; Sat, 23 Jan 1999 14:51:53 -0800 (PST) (envelope-from garbanzo@hooked.net) Received: from localhost (garbanzo@zippy.dyn.ml.org [127.0.0.1]) by zippy.dyn.ml.org (8.9.1/8.8.8) with ESMTP id OAA15701; Sat, 23 Jan 1999 14:54:46 -0800 (PST) (envelope-from garbanzo@hooked.net) Date: Sat, 23 Jan 1999 14:54:45 -0800 (PST) From: Alex Zepeda X-Sender: garbanzo@zippy.dyn.ml.org To: "Kurt D. Zeilenga" cc: Alexander Sanda , current@FreeBSD.ORG Subject: Re: -current (aka 4.x) breaks libtool In-Reply-To: <36AA2580.53EE5AAD@OpenLDAP.Org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 23 Jan 1999, Kurt D. Zeilenga wrote: > At 05:47 PM 1/23/99 +0100, Alexander Sanda wrote: > >Even most recent versions of libtool (1.2e imho) fail to check for > >freebsd4* (as expected). As a result, they set can_build_shared to "no" > >which disables building of shared libraries. > > Here is a simple patch (which I'll forward this to the libtool > maintainers). I don't really like that because it assumes that FreeBSD 3.0 and greater will all have compatable binutils. Somehow I don't think this is going to be the case (or there's a strong chance that it won't be the case). That said, the following is what I've commited to the KDE tree. Index: ltconfig =================================================================== RCS file: /home/kde/kde-common/admin/ltconfig,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- ltconfig 1998/12/16 13:55:25 1.14 +++ ltconfig 1999/01/21 07:17:16 1.15 @@ -1209,6 +1209,15 @@ hardcode_shlibpath_var=no ;; + # FreeBSD 4, uses gcc -shared to do shared libraries, for the time being. + freebsd4*) + archive_cmds='$CC -shared -o $lib$libobjs$deplibs' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_minus_L=no + hardcode_shlibpath_var=no + ;; + hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +s +b $install_libdir -o $objdir/$soname$libobjs$deplibs~test $objdir/$soname = $lib || mv $objdir/$soname $lib' hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' @@ -1606,7 +1615,7 @@ shlibpath_var=PATH ;; -freebsd2* | freebsd3*) +freebsd2* | freebsd3* | freebsd4*) objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` version_type=freebsd-$objformat library_names_spec='${libname}${release}.so$versuffix $libname.so' - alex | "Contrary to popular belief, penguins are not the salvation of modern | | technology. Neither do they throw parties for the urban proletariat." | | Powered by FreeBSD http://www.freebsd.org/ | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message