diff options
author | Sergey Korolev <s.korolev@ndmsystems.com> | 2017-12-14 08:27:03 +0300 |
---|---|---|
committer | Sergey Korolev <s.korolev@ndmsystems.com> | 2017-12-14 22:55:43 +0300 |
commit | 70a1584e151832a347472cb557a72204777c95eb (patch) | |
tree | f89597a23d4e1a2266c8049da7822b4fd49ea666 /scripts/build/libc | |
parent | 01e329051e9ccd3f94241a2f73700ad03da0c59b (diff) | |
download | crosstool-ng-70a1584e151832a347472cb557a72204777c95eb.tar.gz crosstool-ng-70a1584e151832a347472cb557a72204777c95eb.tar.bz2 crosstool-ng-70a1584e151832a347472cb557a72204777c95eb.zip |
Fix variables passing to gdb configure scripts
These changes mainly fix static linking errors when building static
native gdb and gdbserver (tested with gcc 7.2.0 + uClibc-ng 1.0.27 +
binutils 2.29.1 for MIPS):
[ALL ] .../lib/libstdc++.a(eh_throw.o): In function `__cxa_throw':
[ALL ] (.text.__cxa_throw+0x64): undefined reference to `_Unwind_RaiseException'
[ALL ] (.text.__cxa_throw+0x6c): undefined reference to `_Unwind_RaiseException'
[ALL ] .../lib/libstdc++.a(eh_throw.o): In function `__cxa_rethrow':
[ALL ] (.text.__cxa_rethrow+0x78): undefined reference to `_Unwind_Resume_or_Rethrow'
[ALL ] (.text.__cxa_rethrow+0x80): undefined reference to `_Unwind_Resume_or_Rethrow'
...
The problem is in mixing of CPP, CC, CXX, and LD with CPPFLAGS, CFLAGS,
CXXFLAGS, and LDFLAGS before passing to configure scripts.
gcc is sensitive to argument order and the scripts are normally responsible
to combine the variables in a proper way.
Signed-off-by: Sergey Korolev <s.korolev@ndmsystems.com>
Diffstat (limited to 'scripts/build/libc')
0 files changed, 0 insertions, 0 deletions