summaryrefslogtreecommitdiffstats
path: root/meta/classes-global
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-15 12:59:57 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-19 15:25:12 +0000
commitb739fa5f4d9c70f1048906f51ed9276ee2170382 (patch)
tree217dd7aba809d14860cb34ded5421322b5c46ea4 /meta/classes-global
parent54441215bdac4ac3bde1b009b27194edcf7f8147 (diff)
downloadpoky-b739fa5f4d9c70f1048906f51ed9276ee2170382.tar.gz
uninative: Add pthread linking workaround
With newer glibc versions, pthread was merged into the main library so there is no longer any need to link with -lpthread. On newer systems this means that linker flag is dropped from places like pkgconfig .pc files. If uninative then uses this newer library on an older system, the flag is missing and linker errors about missing symbols occur. Adding the linkage unconditionally to our uninative linking flags avoids that problem at a potential cost of slight over linking. (From OE-Core rev: 5ec2bc7ef663db4c04c85eee518297d442556481) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-global')
-rw-r--r--meta/classes-global/uninative.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes-global/uninative.bbclass b/meta/classes-global/uninative.bbclass
index 9b8b4565dd..d2297b53f5 100644
--- a/meta/classes-global/uninative.bbclass
+++ b/meta/classes-global/uninative.bbclass
@@ -143,8 +143,8 @@ def enable_uninative(d):
143 d.setVar("NATIVELSBSTRING", "universal%s" % oe.utils.host_gcc_version(d)) 143 d.setVar("NATIVELSBSTRING", "universal%s" % oe.utils.host_gcc_version(d))
144 d.appendVar("SSTATEPOSTUNPACKFUNCS", " uninative_changeinterp") 144 d.appendVar("SSTATEPOSTUNPACKFUNCS", " uninative_changeinterp")
145 d.appendVarFlag("SSTATEPOSTUNPACKFUNCS", "vardepvalueexclude", "| uninative_changeinterp") 145 d.appendVarFlag("SSTATEPOSTUNPACKFUNCS", "vardepvalueexclude", "| uninative_changeinterp")
146 d.appendVar("BUILD_LDFLAGS", " -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=${UNINATIVE_LOADER}") 146 d.appendVar("BUILD_LDFLAGS", " -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=${UNINATIVE_LOADER} -pthread")
147 d.appendVarFlag("BUILD_LDFLAGS", "vardepvalueexclude", "| -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=${UNINATIVE_LOADER}") 147 d.appendVarFlag("BUILD_LDFLAGS", "vardepvalueexclude", "| -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=${UNINATIVE_LOADER} -pthread")
148 d.appendVarFlag("BUILD_LDFLAGS", "vardepsexclude", "UNINATIVE_LOADER") 148 d.appendVarFlag("BUILD_LDFLAGS", "vardepsexclude", "UNINATIVE_LOADER")
149 d.prependVar("PATH", "${UNINATIVE_STAGING_DIR}-uninative/${BUILD_ARCH}-linux${bindir_native}:") 149 d.prependVar("PATH", "${UNINATIVE_STAGING_DIR}-uninative/${BUILD_ARCH}-linux${bindir_native}:")
150 150