libftdi Archives

Subject: Re: [PATCH] CMakeLists.txt: fix static build with libusb and -latomic

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Cc: Fabrice Fontaine <fontaine.fabrice@xxxxxxxxx>
Date: Tue, 30 Aug 2022 16:59:37 +0200
Hi Fabrice,

You wrote on Fri, May 13, 2022 at 06:11:50PM +0200:
> Use pkg-config to retrieve libusb dependencies such as -latomic and
> avoid the following static build failure:
> 
> /nvmedata/autobuild/instance-29/output-1/per-package/libftdi1/host/bin/../lib/gcc/sparc-buildroot-linux-uclibc/10.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld:
>  
> /nvmedata/autobuild/instance-29/output-1/per-package/libftdi1/host/sparc-buildroot-linux-uclibc/sysroot/lib/libusb-1.0.a(core.o):
>  in function `libusb_unref_device':
> /nvmedata/autobuild/instance-29/output-1/build/libusb-1.0.25/libusb/core.c:1186:
>  undefined reference to `__atomic_fetch_add_4'
> 
> Fixes:
>  - 
> http://autobuild.buildroot.org/results/1ca7cd85ae60ad4797a6d8a83b2fb51d7eab96d9
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@xxxxxxxxx>

applied, thanks a lot!

I hope this email will get through to you. GMail bounced over 100 libftdi 
mailinglist subscribers and the mailinglist agent auto-unsubscribed them.

Probably the missing SPF or DKIM on our part, but such behavior is still a bit 
problematic to say the least. We look into adding DKIM at the end of the year.

Cheers,
Thomas

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread