public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* [crosstool-ng/crosstool-ng] 70a158: Fix variables passing to gdb configure scripts
@ 2017-12-17 19:42 Alexey Neyman
  0 siblings, 0 replies; only message in thread
From: Alexey Neyman @ 2017-12-17 19:42 UTC (permalink / raw)
  To: crossgcc

[-- Attachment #1: Type: text/plain, Size: 1937 bytes --]

  Branch: refs/heads/master
  Home:   https://github.com/crosstool-ng/crosstool-ng
  Commit: 70a1584e151832a347472cb557a72204777c95eb
      https://github.com/crosstool-ng/crosstool-ng/commit/70a1584e151832a347472cb557a72204777c95eb
  Author: Sergey Korolev <s.korolev@ndmsystems.com>
  Date:   2017-12-14 (Thu, 14 Dec 2017)

  Changed paths:
    M scripts/build/debug/300-gdb.sh

  Log Message:
  -----------
  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>


  Commit: 37caa3d4d7986e95e71fcfd102d3a02b08f8a6b8
      https://github.com/crosstool-ng/crosstool-ng/commit/37caa3d4d7986e95e71fcfd102d3a02b08f8a6b8
  Author: Alexey Neyman <stilor@att.net>
  Date:   2017-12-17 (Sun, 17 Dec 2017)

  Changed paths:
    M scripts/build/debug/300-gdb.sh

  Log Message:
  -----------
  Merge pull request #882 from ksergeyv/gdb-link

Fix variables passing to gdb configure scripts


Compare: https://github.com/crosstool-ng/crosstool-ng/compare/f2db6bff7cd9...37caa3d4d798

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-17 19:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-17 19:42 [crosstool-ng/crosstool-ng] 70a158: Fix variables passing to gdb configure scripts Alexey Neyman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).