diff options
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r-- | meta/conf/bitbake.conf | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 15f6da71cc..fab3dcccba 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -585,8 +585,10 @@ LINKER_HASH_STYLE_mipsarch = "sysv" | |||
585 | 585 | ||
586 | TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][d.getVar('LINKER_HASH_STYLE') != 'gnu']}" | 586 | TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][d.getVar('LINKER_HASH_STYLE') != 'gnu']}" |
587 | 587 | ||
588 | ASNEEDED ?= "-Wl,--as-needed" | ||
589 | |||
588 | export LDFLAGS = "${TARGET_LDFLAGS}" | 590 | export LDFLAGS = "${TARGET_LDFLAGS}" |
589 | export TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE}" | 591 | export TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE} ${ASNEEDED}" |
590 | 592 | ||
591 | # Pass parallel make options to the compile task | 593 | # Pass parallel make options to the compile task |
592 | EXTRA_OEMAKE_prepend_task-compile = "${PARALLEL_MAKE} " | 594 | EXTRA_OEMAKE_prepend_task-compile = "${PARALLEL_MAKE} " |