https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121025
Bug ID: 121025
Summary: [7.0 Regression] macOS ld sysroot delegation breaks
libtool
Product: gcc
Version: 15.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: ossman at cendio dot se
Target Milestone: ---
Commit r228950 breaks libtool when cross compiling binaries for macOS.
I assume the idea of the commit was to delegate sysroot handling to ld and have
gcc ignore it. Unfortunately, libtool expects to get a list of library
directories from gcc so it knows where to search for .la files.
The main issue is that STANDARD_STARTFILE_PREFIX_1 and
STANDARD_STARTFILE_PREFIX_2 are set to empty values. I'm not sure how that
interacts with the other changes, though, so for now, we've simply reverted the
entire commit.