This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: problems with statically linked zlib
- From: "Simonov, Vladimir" <Vladimir dot Simonov at acronis dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>, Игорь Пашев <pashev dot igor at gmail dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Wed, 8 May 2013 15:36:55 +0000
- Subject: RE: problems with statically linked zlib
- References: <F0AD13EFC234B549BBA4FCA20755EB24BF7A0EBE at Rus-mbx-1 dot ru dot corp dot acronis dot com> <CALL-Q8zchYbGexKMJZGmzVnbeA81J0_TQBzFpJN5s0e6Okg_sw at mail dot gmail dot com> <F0AD13EFC234B549BBA4FCA20755EB24BF7A0F2D at Rus-mbx-1 dot ru dot corp dot acronis dot com> <87zjw6smmg dot fsf at hase dot home>
> 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