This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
OpenBSD: configure exits prematurely
- To: binutils at sourceware dot cygnus dot com
- Subject: OpenBSD: configure exits prematurely
- From: Pavel Roskin <pavel_roskin at geocities dot com>
- Date: Sun, 31 Oct 1999 19:12:25 +0300 (EET)
Hello!
It seems that the list at bug-gnu-utils@gnu.org is now obsolete, so I'm
resending my message here.
I'm trying to compile binutils-991029 (binutils-991027 patched with diffs)
on OpenBSD 2.5
configure exits with the following message:
*** ld does not support target i386-unknown-openbsd2.5
*** see ld/configure.tgt for supported targets
Configure in /usr/local/src/binutils-991027/ld failed, exiting.
The worst thing is that `gas' is not configured. Actually, `gas' is the
only program I need to upgrade.
If I remember correctly, binulils-2.9.1.0.19 also failed in the `ld'
directory, but the `configure' script continued execution, so that I was
able to compile `gas'
I'm attaching a simple patch that enables OpenBSD support.
I don't know how correct it is, but the executables linked with the new
`ld' can be executed on OpenBSD. I don't have anything like iBCS
installed. I'm sure that the new `ld' is used. I remove all other copies
so that gcc refuses to link anything. Then I put the new `ld' in /usr/bin,
and it produces executables.
Anyway, I think that the top-level configure should continue if
ld/configure fails (as it used to be in binutils-2.9.1.0.x)
Pavel Roskin
--- ld/configure.tgt Sat Sep 4 21:37:36 1999
+++ ld/configure.tgt Sat Oct 30 01:28:02 1999
@@ -96,6 +96,7 @@
i[3456]86-*-unixware) targ_emul=elf_i386 ;;
i[3456]86-*-solaris*) targ_emul=elf_i386 ;;
i[3456]86-*-netbsd*) targ_emul=i386nbsd ;;
+i[3456]86-*-openbsd*) targ_emul=i386nbsd ;;
i[3456]86-*-netware) targ_emul=i386nw ;;
i[3456]86-*-elf*) targ_emul=elf_i386 ;;
i[3456]86-*-freebsdaout* | i[3456]86-*-freebsd[12].* | i[3456]86-*-freebsd[12])