summaryrefslogtreecommitdiffstats
path: root/meta/conf
diff options
context:
space:
mode:
Diffstat (limited to 'meta/conf')
-rw-r--r--meta/conf/bitbake.conf4
-rw-r--r--meta/conf/distro/include/as-needed.inc4
-rw-r--r--meta/conf/distro/include/tcmode-default.inc3
3 files changed, 3 insertions, 8 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
586TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][d.getVar('LINKER_HASH_STYLE') != 'gnu']}" 586TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][d.getVar('LINKER_HASH_STYLE') != 'gnu']}"
587 587
588ASNEEDED ?= "-Wl,--as-needed"
589
588export LDFLAGS = "${TARGET_LDFLAGS}" 590export LDFLAGS = "${TARGET_LDFLAGS}"
589export TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE}" 591export 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
592EXTRA_OEMAKE_prepend_task-compile = "${PARALLEL_MAKE} " 594EXTRA_OEMAKE_prepend_task-compile = "${PARALLEL_MAKE} "
diff --git a/meta/conf/distro/include/as-needed.inc b/meta/conf/distro/include/as-needed.inc
deleted file mode 100644
index b163fef683..0000000000
--- a/meta/conf/distro/include/as-needed.inc
+++ /dev/null
@@ -1,4 +0,0 @@
1
2ASNEEDED = "-Wl,--as-needed"
3
4TARGET_LDFLAGS += "${ASNEEDED}"
diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc
index 4b58df0459..d85fd1e921 100644
--- a/meta/conf/distro/include/tcmode-default.inc
+++ b/meta/conf/distro/include/tcmode-default.inc
@@ -65,12 +65,9 @@ PREFERRED_VERSION_glibc-initial ?= "${GLIBCVERSION}"
65PREFERRED_VERSION_nativesdk-glibc-initial ?= "${GLIBCVERSION}" 65PREFERRED_VERSION_nativesdk-glibc-initial ?= "${GLIBCVERSION}"
66PREFERRED_VERSION_cross-localedef-native ?= "${GLIBCVERSION}" 66PREFERRED_VERSION_cross-localedef-native ?= "${GLIBCVERSION}"
67 67
68
69PREFERRED_VERSION_qemu ?= "${QEMUVERSION}" 68PREFERRED_VERSION_qemu ?= "${QEMUVERSION}"
70PREFERRED_VERSION_qemu-native ?= "${QEMUVERSION}" 69PREFERRED_VERSION_qemu-native ?= "${QEMUVERSION}"
71PREFERRED_VERSION_nativesdk-qemu ?= "${QEMUVERSION}" 70PREFERRED_VERSION_nativesdk-qemu ?= "${QEMUVERSION}"
72# Setup suitable toolchain flags
73require conf/distro/include/as-needed.inc
74 71
75GOVERSION ?= "1.9%" 72GOVERSION ?= "1.9%"
76PREFERRED_VERSION_virtual/${TARGET_PREFIX}go ?= "${GOVERSION}" 73PREFERRED_VERSION_virtual/${TARGET_PREFIX}go ?= "${GOVERSION}"