This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: binutils build broken on Debian GNU/Linux 4.0 i686-pc-linux-gnu, libtool problem?
- From: Rask Ingemann Lambertsen <rask at sygehus dot dk>
- To: binutils at sourceware dot org
- Date: Mon, 25 Jun 2007 01:49:54 +0200
- Subject: Re: binutils build broken on Debian GNU/Linux 4.0 i686-pc-linux-gnu, libtool problem?
- References: <20070624213642.GH5690@sygehus.dk>
On Sun, Jun 24, 2007 at 11:36:42PM +0200, Rask Ingemann Lambertsen wrote:
>
> Notice that the libraries are listed in the wrong order:
> ../libiberty/libiberty.a ../bfd/.libs/libbfd.a
> It works if I manually swap them.
Looks like libtool is the culprit. I added a big of debugging aid to the
Makefile:
$ diff -u binutils/Makefile{~,}
--- binutils/Makefile~ 2007-06-25 01:41:13.000000000 +0200
+++ binutils/Makefile 2007-06-25 01:41:13.000000000 +0200
@@ -473,7 +473,7 @@
addr2line_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
readelf_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
dllwrap_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
-LDADD = $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
+LDADD = 1 $(BFDLIB) 2 $(LIBIBERTY) 3 $(LIBINTL) 4
size_SOURCES = size.c $(BULIBS)
objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
strings_SOURCES = strings.c $(BULIBS)
$ make
...
make[4]: Entering directory `/home/rask/testbuild/binutils'
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -o size size.o bucomm.o version.o filemode.o 1 ../bfd/libbfd.la 2 ../libiberty/libiberty.a 3 4
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -o size size.o bucomm.o version.o filemode.o 1 2 ../libiberty/libiberty.a 3
4 ../bfd/.libs/libbfd.a
--
Rask Ingemann Lambertsen