Date: Sat, 23 Jan 1999 11:39:44 -0800 From: "Kurt D. Zeilenga" <Kurt@OpenLDAP.Org> To: Alexander Sanda <entropy@compufit.at> Cc: current@FreeBSD.ORG Subject: Re: -current (aka 4.x) breaks libtool Message-ID: <36AA2580.53EE5AAD@OpenLDAP.Org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36AA2580.53EE5AAD>