On Fri, Mar 17, 2006 at 06:12:18AM +0100, Ralf Wildenhues wrote:
> Hi Kurt, Aurelien,
Hi!

First of all, sorry for the late answer...

> * Kurt Roeckx wrote on Sun, Mar 12, 2006 at 04:37:09PM CET:
> > 
> > I've attached 2 patches that should get kfreebsd*-gnu and
> > knetbsd*-gnu support, or more in general k*bsd*-gnu support
> > working properly.
> 
> Was it broken before (honest question)?

Well before it was working it most cases, but it's already the third
time we encounter a problem with a specific package. In all case the
solution is too copy the linux-gnu part into kfreebsd*-gnu.

> > k*bsd behaves like Linux, but with a bsd kernel.  They have a gnu
> > libc, gnu binutils, ...  Some of the things currently in libtool.m4
> > are actually for the case they wouldn't be using gnu ld, and
> > therefor break.  They mostly seem to have problem with the
> > kfreebsd-amd64 port.
> > 
> > The patch changed (almost) everything to do the same as on Linux.
> > It's based on a patch provided by Aurelien Jarno.  I've made a
> > patch for both the 1.5 branch and 2.0.
> 
> The patches look fine to me, but they change how a number of things work
> on kfreebsd*-gnu and knetbsd*-gnu.  Is it right that Debian is still
> basically the only producer of such a system, and that you are needing
> the changes anyway, so a flag day is a non issue?

There is also Gentoo, which recently started to provide GNU/kFreeBSD base, 
but it is actually the same people behind it.

> > One thing I have to wonder about is they need to set LD in
> > _LT_AC_LOCK for arches that support 64 bit.
> 
> What's the gist of this comment?  (Except for that the name _LT_AC_LOCK
> is exceptionally stupid, granted ;-)
 
_LC_AC_LOCK will probably be the only thing different from GNU/Linux,
because the ld target is different. Currently we are not supporting
bi-arch on x86_64 because our kernel has some problems with it, but that
will probably come soon.

I have attached a patch for that part.

Bye,
Aurelien

-- 
  .''`.  Aurelien Jarno             | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [EMAIL PROTECTED]         | [EMAIL PROTECTED]
   `-    people.debian.org/~aurel32 | www.aurel32.net
--- libtool.m4.orig     2006-03-25 23:07:34.195524062 +0100
+++ libtool.m4  2006-03-25 23:12:25.914833186 +0100
@@ -565,6 +565,31 @@
   rm -rf conftest*
   ;;
 
+x86_64-*kfreebsd*-gnu)
+  # Find out which ABI we are using.
+  echo 'int i;' > conftest.$ac_ext
+  if AC_TRY_EVAL(ac_compile); then
+    case `/usr/bin/file conftest.o` in
+    *32-bit*)
+      case $host in
+        x86_64-*kfreebsd*-gnu)
+          LD="${LD-ld} -m elf_i386_fbsd"
+          ;;
+      esac
+      ;;
+    *64-bit*)
+      case $host in
+        x86_64-*kfreebsd*-gnu)
+          LD="${LD-ld} -m elf_x86_64_fbsd"
+          ;;
+      esac
+      ;;
+    esac
+  fi
+  rm -rf conftest*
+  ;;
+
+
 *-*-sco3.2v5*)
   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   SAVE_CFLAGS="$CFLAGS"

Reply via email to