[Buildroot] [PATCH v3] cppunit: Added package

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Oct 16 09:53:40 UTC 2014


Dear Arnout Vandecappelle,

On Thu, 16 Oct 2014 11:42:45 +0200, Arnout Vandecappelle wrote:

> > No: if it's really related to shared libraries, then it should be a
> > depends on !BR2_PREFER_STATIC_LIB.
> 
>  Yeah, you're probably right. It does build with PREFER_STATIC on other
> architectures, but that's just because there still is a dlopen in staging so it
> still sets CPPUNIT_HAVE_LIBDL and then it builds "correctly". But we most likely
> have many many packages that seem to build correctly with STATIC but actually
> still use shared libraries or dlopen. We probably should remove ld.so and
> libdl.* from staging when building static.

Well, for packages that do build on noMMU platforms, we do catch such
issues thanks to the bfin-uclinux toolchain configuration that is used
on the autobuilders. But for those other packages that don't build on
noMMU, we indeed don't check properly if we're able to do a pure static
build.

Alexey has sent a patch to remove HAVE_SHARED from the uClibc
configuration when BR2_PREFER_STATIC_LIB is enabled. Maybe this will
get rid of ld.so, libdl and so on? I haven't tested yet.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list