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


> From: Andreas Schwab [mailto:schwab@linux-m68k.org] 
> Subject: Re: problems with statically linked zlib
>
>>"Simonov, Vladimir" <Vladimir.Simonov@acronis.com> writes:
>>
>> I'd prefer some configure option. Like --with-mpfr=$TOOLS_DIR for gcc build.
>
> If you can pass special configure options then you can also pass special CPPFLAGS settings.
>
> Andreas.

It seems that CPPFLAGS/CXXFLAGS are not passed from top level configure to
subdirs(bfd/gold, ets) if I launch
../binutils-2.23.c/configure CPPFLAGS=-I$TOOLS_DIR/include ...
But LDFLAGS are passed OK.
CPPFLAGS=-I$TOOLS_DIR/include ../binutils-2.23.c/configure
Doesn't work also.

The only way (without explicit export) I've found is to run "make" with these options.
That is why "global export" works.
So finally I got:
CPPFLAGS=-I$TOOLS_DIR/include ../binutils-2.23.c/configure LDFLAGS=-L$TOOLS_DIR/lib --with-zlib ...
make CPPFLAGS=-I$TOOLS_DIR/include all

Looks quite hackish but works.

Thank you for your comments.

Vladimir


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