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

Reply via email to