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: problems with statically linked zlib


2013/5/7 Simonov, Vladimir <Vladimir.Simonov@acronis.com>:
> Hi all,
>
> Environment: host - x86_64-unknown-linux-gnu, target - x86_64-unknown-linux-gnu,
> gcc - 4.7.2, binutils-2.23.2.
>
> I'd like to build ld and gold with statically linked zlib. libz.a is built in
> advance and placed in some directory ($TOOLS_DIR/lib).
> The only way I see -
> export CPPFLAGS="-I$TOOLS_DIR/include"
> export LDFLAGS="-L$TOOLS_DIR/lib"
> and run configure and build. Without above either system zlib.so is used or gold
> sources can't find zlib.h.
>
> What is correct way to configure binutils to get zlib linked-in statically?
>

This is exaclty the way GNU autotools work.


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