Follow-up Comment #1, bug #68146 (group make):

Correction: my initial report stated that versions 4.3 and 4.4 are not
  affected. That was incorrect — I tested those versions with the system
  compiler (Apple Clang) directly, which happens to resolve glob from
  libgnu.a first due to link order. Sorry for the confusion.

  The issue is not a regression between 4.4 and 4.4.1. All versions have
  the same fragile linking in build.sh: glob() from libgnu.a is a static
  archive symbol, so it only gets pulled in if glob is still undefined at
  the point -lgnu is processed. If any library linked before -lgnu pulls
  in libSystem's glob() first (e.g. additional frameworks or libraries
  injected by a build system's C++ toolchain), the system glob wins and
  causes a segfault due to ABI mismatch.

  The fix in the attached patch (-Wl,-force_load,libgnu.a on macOS) is
  still correct — it makes the link robust regardless of what other
  libraries are present.

  — Alexander Bayandin


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68146>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to