* [Buildroot] [PATCH 1/1] package/opensc: link with -latomic if needed
@ 2023-07-20 18:54 Bernd Kuhls
2023-07-20 21:17 ` Thomas Petazzoni via buildroot
[not found] ` <20230720231717.33ed6806__30743.4139352821$1689887867$gmane$org@windsurf>
0 siblings, 2 replies; 3+ messages in thread
From: Bernd Kuhls @ 2023-07-20 18:54 UTC (permalink / raw)
To: buildroot
Fixes:
http://autobuild.buildroot.net/results/fb4/fb4c6a97ac666a3a75345229a320769df6c0a909/
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
package/opensc/opensc.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/opensc/opensc.mk b/package/opensc/opensc.mk
index 253b6b26f8..8944b6c7ed 100644
--- a/package/opensc/opensc.mk
+++ b/package/opensc/opensc.mk
@@ -13,4 +13,8 @@ OPENSC_DEPENDENCIES = openssl pcsc-lite
OPENSC_INSTALL_STAGING = YES
OPENSC_CONF_OPTS = --disable-cmocka --disable-strict
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+OPENSC_CONF_ENV += LIBS=-latomic
+endif
+
$(eval $(autotools-package))
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/opensc: link with -latomic if needed
2023-07-20 18:54 [Buildroot] [PATCH 1/1] package/opensc: link with -latomic if needed Bernd Kuhls
@ 2023-07-20 21:17 ` Thomas Petazzoni via buildroot
[not found] ` <20230720231717.33ed6806__30743.4139352821$1689887867$gmane$org@windsurf>
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-07-20 21:17 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: buildroot
On Thu, 20 Jul 2023 20:54:45 +0200
Bernd Kuhls <bernd@kuhls.net> wrote:
> Fixes:
> http://autobuild.buildroot.net/results/fb4/fb4c6a97ac666a3a75345229a320769df6c0a909/
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> ---
> package/opensc/opensc.mk | 4 ++++
> 1 file changed, 4 insertions(+)
I continue to think this is not the right way of handling this issue.
opensc is using pkg-config to detect openssl, so it is the openssl .pc
files that should have -latomic. This will fix the issue once for all
for all users of openssl, without chasing them down one by one.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/opensc: link with -latomic if needed
[not found] ` <20230720231717.33ed6806__30743.4139352821$1689887867$gmane$org@windsurf>
@ 2023-07-24 20:48 ` Bernd Kuhls
0 siblings, 0 replies; 3+ messages in thread
From: Bernd Kuhls @ 2023-07-24 20:48 UTC (permalink / raw)
To: buildroot
Am Thu, 20 Jul 2023 23:17:17 +0200 schrieb Thomas Petazzoni via buildroot:
> I continue to think this is not the right way of handling this issue.
> opensc is using pkg-config to detect openssl, so it is the openssl .pc
> files that should have -latomic. This will fix the issue once for all
> for all users of openssl, without chasing them down one by one.
Hi Thomas,
openssl has everything in place for statically linking to libatomic:
cat output/per-package/opensc/host/arceb-buildroot-linux-uclibc/sysroot/
usr/lib/pkgconfig/libcrypto.pc | grep atomic
Libs.private: -ldl -pthread -latomic -latomic
It's just the build system of opensc which does not make use of it. Due to
my limited coding skills I only managed to disable building the test
binaries which include the broken file:
https://patchwork.ozlabs.org/project/buildroot/patch/
20230724204439.1526127-1-bernd@kuhls.net/
Regards, Bernd
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-07-24 20:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-20 18:54 [Buildroot] [PATCH 1/1] package/opensc: link with -latomic if needed Bernd Kuhls
2023-07-20 21:17 ` Thomas Petazzoni via buildroot
[not found] ` <20230720231717.33ed6806__30743.4139352821$1689887867$gmane$org@windsurf>
2023-07-24 20:48 ` Bernd Kuhls
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox