This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Static build of binutils 2.16.1


On Sun, Mar 26, 2006 at 06:38:30PM +0200, Pierre Wieser wrote:
> Hi,
> 
> I'm trying to build (compile+static link) binutils 2.16.1 from sources. All
> I get is dynamically linked executables. Obviously, I'm missing something,
> but I don't understand what !
> 
> I use :
> ../binutils-2.16.1/configure \
> 	--prefix=/tmp/binutils-install \
> 	--host=i586-pc-linux-gnu \
> 	--disable-shared \
> 	--disable-nls &&
> make LDFLAGS=-static
> 
> It seems that most of executables have a "prog_LDFLAGS = " empty line in the
> Makefile, so that they do not receive the 'main' LDFLAGS I passed on to the
> Makefile..
> 
> Is it normal ?

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

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]