From owner-freebsd-current Sat Jan 23 11:42:27 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA07824 for freebsd-current-outgoing; Sat, 23 Jan 1999 11:42:27 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from cantor.boolean.net (cantor.boolean.net [209.133.111.73]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA07819 for ; Sat, 23 Jan 1999 11:42:26 -0800 (PST) (envelope-from Kurt@OpenLDAP.Org) Received: from OpenLDAP.Org (localhost [127.0.0.1]) by cantor.boolean.net (8.9.1/8.9.1) with ESMTP id TAA40914; Sat, 23 Jan 1999 19:48:50 GMT (envelope-from Kurt@OpenLDAP.Org) Message-ID: <36AA2580.53EE5AAD@OpenLDAP.Org> Date: Sat, 23 Jan 1999 11:39:44 -0800 From: "Kurt D. Zeilenga" Organization: OpenLDAP X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en-GB,en-US,en,de-DE,de MIME-Version: 1.0 To: Alexander Sanda CC: current@FreeBSD.ORG Subject: Re: -current (aka 4.x) breaks libtool Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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've just applied the following to the OpenLDAP copy of ltconfig. It should work for FreeBSD 4.0 and beyond... Index: ltconfig =================================================================== RCS file: /repo/OpenLDAP/pkg/ldap/build/ltconfig,v retrieving revision 1.4 diff -u -r1.4 ltconfig --- ltconfig 1998/12/21 22:08:06 1.4 +++ ltconfig 1999/01/23 19:38:42 @@ -776,8 +776,13 @@ hardcode_shlibpath_var=no ;; - # FreeBSD 3, at last, uses gcc -shared to do shared libraries. - freebsd3*) + freebsd1*) + ld_shlibs=no + can_build_shared=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* ) archive_cmds='$CC -shared -o $lib$libobjs' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes @@ -1129,8 +1134,12 @@ finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH ;; + +freebsd1*) + dynamic_linker=no + ;; -freebsd3*) +freebsd*) version_type=freebsd library_names_spec='${libname}${release}.so.$versuffix $libname.so' if [ -x `/usr/bin/objformat` ]; then To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message