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 majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to