Message ID | 20220712080006.1711090-1-mingli.yu@windriver.com |
---|---|
State | New |
Headers | show |
Series | curl: Link with libatomic on rv64 | expand |
upstream has a fix in code [1] to avoid these calls lets backport that [1] https://github.com/curl/curl/commit/50efb0822aa0e0ab165158dd0a26e65a2290e6d2 On 7/12/22 9:00 AM, Yu, Mingli wrote: > From: Mingli Yu <mingli.yu@windriver.com> > > Fixes: > undefined reference to `__atomic_exchange_1' > > Signed-off-by: Mingli Yu <mingli.yu@windriver.com> > --- > meta/recipes-support/curl/curl_7.84.0.bb | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/meta/recipes-support/curl/curl_7.84.0.bb b/meta/recipes-support/curl/curl_7.84.0.bb > index 0d829cdf23..d8efb45a08 100644 > --- a/meta/recipes-support/curl/curl_7.84.0.bb > +++ b/meta/recipes-support/curl/curl_7.84.0.bb > @@ -75,6 +75,8 @@ EXTRA_OECONF = " \ > ${@'--without-ssl' if (bb.utils.filter('PACKAGECONFIG', 'gnutls mbedtls nss openssl', d) == '') else ''} \ > " > > +LDFLAGS:append:riscv64 = " -Wl,--no-as-needed -latomic -Wl,--as-needed" > + > do_install:append:class-target() { > # cleanup buildpaths from curl-config > sed -i \ > > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#167910): https://lists.openembedded.org/g/openembedded-core/message/167910 > Mute This Topic: https://lists.openembedded.org/mt/92328681/1997914 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
diff --git a/meta/recipes-support/curl/curl_7.84.0.bb b/meta/recipes-support/curl/curl_7.84.0.bb index 0d829cdf23..d8efb45a08 100644 --- a/meta/recipes-support/curl/curl_7.84.0.bb +++ b/meta/recipes-support/curl/curl_7.84.0.bb @@ -75,6 +75,8 @@ EXTRA_OECONF = " \ ${@'--without-ssl' if (bb.utils.filter('PACKAGECONFIG', 'gnutls mbedtls nss openssl', d) == '') else ''} \ " +LDFLAGS:append:riscv64 = " -Wl,--no-as-needed -latomic -Wl,--as-needed" + do_install:append:class-target() { # cleanup buildpaths from curl-config sed -i \