[Buildroot] [PATCH] qt5: disable for static-only builds

Peter Korsgaard peter at korsgaard.com
Wed Aug 26 21:05:27 UTC 2015


>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

 > Even though we have some specific code to support building Qt5 for
 > static-only configurations, it doesn't work. The first problem is that
 > our custom qmake.conf always passes -ldl, which makes a number of Qt5
 > config.tests fail at configure time. Once this problem is fixed by
 > removing -ldl from QMAKE_LIBS and adding it to QMAKE_LIBS_DYNLOAD
 > instead, the next problem is that the plugin infrastructure of Qt5
 > assumes that Linux has dynamic library support: the qlibrary_unix.cpp
 > file includes <dlfcn.h>, and the only condition for this file to not
 > be included is:

 > Until recently, building Qt5 statically was working because our C
 > library was not built static-only: it provided <dlfcn.h> and
 > libdl.so. But now that we have a really static only toolchain, Qt5 no
 > longer builds.

 > The easiest solution is to simply make Qt5 depend on dynamic library
 > support.

Yes, I agree. Committed, thanks.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list