public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] libpcre2: Limit the undefined-version to non-native variants
@ 2026-01-14  0:35 Khem Raj
  0 siblings, 0 replies; only message in thread
From: Khem Raj @ 2026-01-14  0:35 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

Native variant maybe built with GNU linker which does not recognize.

Fixes build on ubuntu 22.04
/home/kraj200/yoe/build/tmp/hosttools/ld: unrecognized option '--undefined-version'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-support/libpcre/libpcre2_10.47.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-support/libpcre/libpcre2_10.47.bb b/meta/recipes-support/libpcre/libpcre2_10.47.bb
index 2ac249f05b..217a60aae9 100644
--- a/meta/recipes-support/libpcre/libpcre2_10.47.bb
+++ b/meta/recipes-support/libpcre/libpcre2_10.47.bb
@@ -39,7 +39,8 @@ EXTRA_OECONF = "\
 "
 CFLAGS += "-D_REENTRANT"
 CXXFLAGS:append:powerpc = " -lstdc++"
-LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '-Wl,--undefined-version', '', d)}"
+LDFLAGS:append:class-target = " ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '-Wl,--undefined-version', '', d)}"
+LDFLAGS:append:class-nativesdk = " ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '-Wl,--undefined-version', '', d)}"
 
 PACKAGES =+ "libpcre2-16 libpcre2-32 pcre2grep pcre2grep-doc pcre2test pcre2test-doc"
 


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-01-14  0:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-14  0:35 [PATCH] libpcre2: Limit the undefined-version to non-native variants Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox