problems with statically linked zlib
Simonov, Vladimir
Vladimir.Simonov@acronis.com
Wed May 8 15:37:00 GMT 2013
> 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
More information about the Binutils
mailing list