[PATCH] ldscript: Omit exec_prefix from SEARCH_DIR when sysroot is specified
Andreas Schwab
schwab@suse.de
Thu Jul 3 15:02:35 GMT 2025
On Jul 01 2025, Mark Goncharov wrote:
> The libpath value directly influences the SEARCH_DIR entries in the generated linker scripts.
> When creating entries with SEARCH_DIR("=/[path]"), the linker automatically substitutes the sysroot path for the '=' symbol.
> As a result, when building with the --with-sysroot flag specified, explicitly adding exec_prefix to the library search path becomes incorrectly.
Why does it become incorrect? The tree below sysroot is supposed to
reflect exactly the layout of a native system. That's the whole point
of sysroot.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Binutils
mailing list