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@suse.de] 
> Subject: Re: problems with statically linked zlib
>
> "Simonov, Vladimir" <Vladimir.Simonov@acronis.com> writes:
> 
>> 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 ...
>
>Does it work to use CFLAGS instead?

It works, passed to sub-configure. But gold ignores CFLAGS and "make"
in gold failed because can't find zlib.h.

If I pass CXXFLAGS then it overrides some default values and gold build
fails with:
                 from /home/sv/work/build_root/x86_64-gcc-4.8.0-glibc-2.3.2-0.43
/build/binutils-2.23.2/gold/gdb-index.cc:23:
/opt/crosstool64/x86_64-unknown-linux-gnu/gcc-4.7.2-glibc-2.3.2/x86_64-unknown-l
inux-gnu/include/c++/4.7.2/backward/backward_warning.h:33:2: warning: #warning T
his file includes at least one deprecated or antiquated header which may be remo
ved without further notice at a future date. Please use a non-deprecated interfa
ce with equivalent functionality instead. For a listing of replacement headers a
nd interfaces, consult the file backward_warning.h. To disable this warning use
-Wno-deprecated. [-Wcpp]
In file included from /opt/crosstool64/x86_64-unknown-linux-gnu/gcc-4.7.2-glibc-
2.3.2/x86_64-unknown-linux-gnu/include/c++/4.7.2/ext/hash_map:65:0,
                 from /home/sv/work/build_root/x86_64-gcc-4.8.0-glibc-2.3.2-0.43
/build/binutils-2.23.2/gold/gold.h:101,
                 from /home/sv/work/build_root/x86_64-gcc-4.8.0-glibc-2.3.2-0.43
/build/binutils-2.23.2/gold/gdb-index.cc:23:
......................
ong int, __gnu_cxx::hash<long long int>, std::_Select1st<std::pair<const long lo
ng int, gold::Gdb_index_info_reader::Declaration_pair> >, std::equal_to<long lon
g int>, std::allocator<gold::Gdb_index_info_reader::Declaration_pair> >; __gnu_c
xx::hash_map<_Key, _Tp, _HashFn, _EqualKey, _Alloc>::key_type = long long int]'
/home/sv/work/build_root/x86_64-gcc-4.8.0-glibc-2.3.2-0.43/build/binutils-2.23.2
/gold/gdb-index.cc:696:67:   required from here
/opt/crosstool64/x86_64-unknown-linux-gnu/gcc-4.7.2-glibc-2.3.2/x86_64-unknown-l
inux-gnu/include/c++/4.7.2/backward/hashtable.h:610:33: error: no match for call
 to '(const hasher {aka const __gnu_cxx::hash<long long int>}) (const key_type&)
'
make[3]: *** [gdb-index.o] Error 1

Probably it is another problem :)

Vladimir


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