Static build of binutils 2.16.1

Pierre Wieser pierre.wieser@gadz.org
Sun Mar 26 21:18:00 GMT 2006


> That's surely not what's happening, have you looked at $(LINK) or at
> the actual commands being run?  $(LINK) includes $(LDFLAGS).

Euhh. Yes, it's happen.
LINK variable seems good, as it includes '-static' flag, but the flag is not
reported on actual command line. For example :

/bin/sh ./libtool --mode=link
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-g -O2 -static -o objdump  objdump.o budemang.o prdbg.o rddbg.o debug.o
stabs.o
ieee.o rdcoff.o bucomm.o version.o filemode.o ../opcodes/libopcodes.la
../bfd/libbfd.la ../libiberty/libiberty.a
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -o objdump
objdump.o
budemang.o prdbg.o rddbg.o debug.o stabs.o ieee.o rdcoff.o bucomm.o
version.o
filemode.o  ../opcodes/.libs/libopcodes.a ../bfd/.libs/libbfd.a
../libiberty/libiberty.a

Makefile is :

objdump$(EXEEXT): $(objdump_OBJECTS) $(objdump_DEPENDENCIES)
        @rm -f objdump$(EXEEXT)
        $(LINK) $(objdump_LDFLAGS) $(objdump_OBJECTS) $(objdump_LDADD)
$(LIBS)

And I don't understand this behavior. I surely have missed something but I
don't see what... I precise that current version on my host systems are gcc
3.2 and binutils 2.13.

Regards
Pierre



More information about the Binutils mailing list