From 773c9e18071d71454473dd81aff911104a2e9bc6 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sun, 14 Feb 2016 14:28:48 +0000 Subject: conf/distro/include: Add no-static-libs.inc Static libraries are old technology. We've left them around since in previous tests, they only added around 5% to the overall build time. With new and interesting uses of OE, they're becoming more problematic. For example, sstate becomes much larger with static libs enabled which increases the size of eSDK and increases the time taken for sstate operations. Since the static libs contain all the debugging symbols, they're also pretty huge. This patch adds a common include file which allows the user or distro to disable the static libraries in the majority of cases. There are some libs where we do need the static lib, a good example being pseudo-native which uses sqlite3-native static libs. These are left enabled by the include file, as are recipes where --disable-static doesn't work, or isn't supported. This list can likely be reduced over time as individual corner cases are addressed. Maintaining this list in a common location is more desireable than everyone doing it themselves. Poky will switch to using this, OE-Core will need to discuss that as its default. Signed-off-by: Richard Purdie --- meta/conf/distro/include/no-static-libs.inc | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 meta/conf/distro/include/no-static-libs.inc diff --git a/meta/conf/distro/include/no-static-libs.inc b/meta/conf/distro/include/no-static-libs.inc new file mode 100644 index 0000000000..7e5c5b940f --- /dev/null +++ b/meta/conf/distro/include/no-static-libs.inc @@ -0,0 +1,30 @@ +DISABLE_STATIC = " --disable-static" +# qemu aborts on unrecognised option +DISABLE_STATIC_pn-qemu = "" +DISABLE_STATIC_pn-qemu-native = "" +DISABLE_STATIC_pn-nativesdk-qemu = "" +# pciutils fails build +DISABLE_STATIC_pn-pciutils = "" +# libcap aborts on unrecognised option +DISABLE_STATIC_pn-libcap = "" +# libpcap aborts on unrecognised option +DISABLE_STATIC_pn-libpcap = "" +# needed by gdb +DISABLE_STATIC_pn-readline = "" +# needed by pseudo +DISABLE_STATIC_pn-sqlite3 = "" +DISABLE_STATIC_pn-sqlite3-native = "" +DISABLE_STATIC_pn-nativesdk-sqlite3 = "" +# openjade/sgml-common have build issues without static libs +DISABLE_STATIC_pn-sgml-common-native = "" +DISABLE_STATIC_pn-openjade-native = "" +# openssl has build issues without static libs +DISABLE_STATIC_pn-openssl = "" +DISABLE_STATIC_pn-openssl-native = "" +DISABLE_STATIC_pn-nativesdk-openssl = "" +# waf aborts on unknown option +DISABLE_STATIC_pn-eglinfo-x11 = "" +DISABLE_STATIC_pn-eglinfo-fb = "" +# libssp-static-dev included in build-appliance +DISABLE_STATIC_pn-gcc-runtime = "" +EXTRA_OECONF_append = "${DISABLE_STATIC}" -- cgit 1.2.3-korg