build system: add support for mold & linker PKG_BUILD_FLAGS

This commit is contained in:
SupervisedThinking
2022-10-06 19:39:35 +02:00
parent 0d5fd365fb
commit e485a16a8d
5 changed files with 8 additions and 2 deletions

View File

@@ -270,7 +270,7 @@ linker_allowed() {
get_target_linker() {
# all known linkers, in descending order of priority
# those are candidates for explicit opt-in via PKG_BUILD_FLAGS
local all_linkers="gold bfd"
local all_linkers="mold gold bfd"
# linkers to choose from unless disabled via PKG_BUILD_FLAGS
local linker_candidates="${DEFAULT_LINKER:-bfd} ${all_linkers}"