[Buildroot] [PATCH 1/1] package/opensc: link with -latomic if needed

Bernd Kuhls bernd at kuhls.net
Mon Jul 24 20:48:17 UTC 2023


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 at kuhls.net/

Regards, Bernd




More information about the buildroot mailing list