Skip to contentSkip to conversation

no-static-libs: disable static libraries in libjpeg-turbo

PATCH In review Ross Burton 2 participants 3 messages Aug 30, 2018 – Aug 31, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 no-static-libs: disable static libraries in libjpeg-turbo

Previously this was done with the generic autotools support, but CMake doesn't have a standard option so set it explicitly.

---
 meta/conf/distro/include/no-static-libs.inc | 1 +
 1 file changed, 1 insertion(+)
meta/conf/distro/include/no-static-libs.inc +1 -0
index 7fd578b3ce7..cdc53916d07 100644
@@ -36,6 +36,7 @@ DISABLE_STATIC_pn-libusb1-native = ""
 EXTRA_OECONF_append = "${DISABLE_STATIC}"
 
 EXTRA_OECMAKE_append_pn-libical = " -DSHARED_ONLY=True"
+EXTRA_OECMAKE_append_pn-libjpeg-turbo = " -DENABLE_STATIC=False"
 
 EXCONFIG_ARGS_append_pn-ncurses = " --without-normal"
 EXCONFIG_ARGS_append_pn-ncurses-native = " --without-normal"
Signature · 1 line
2.11.0
#1 lore raw
Quoted 4 lines · Ross Burton

Previously this was done with the generic autotools support, but CMake doesn't have a standard option so set it explicitly.

Not particularly relevant to this patch but another approach could be to turn no-staticlibs into a distro feature and move these controls to respective recipes.
may be for next release ..

Quoted 25 lines
---
 meta/conf/distro/include/no-static-libs.inc | 1 +
 1 file changed, 1 insertion(+)
meta/conf/distro/include/no-static-libs.inc +1 -1
index 7fd578b3ce7..cdc53916d07 100644
@@ -36,6 +36,7 @@ DISABLE_STATIC_pn-libusb1-native = ""
 EXTRA_OECONF_append = "${DISABLE_STATIC}"
 
 EXTRA_OECMAKE_append_pn-libical = " -DSHARED_ONLY=True"
+EXTRA_OECMAKE_append_pn-libjpeg-turbo = " -DENABLE_STATIC=False"
 
 EXCONFIG_ARGS_append_pn-ncurses = " --without-normal"
 EXCONFIG_ARGS_append_pn-ncurses-native = " --without-normal"
--

2.11.0

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#2 lore raw

Yes, the way the controls need to be in here has bothered me for a while.

Ross

Quoted 36 lines · Khem Raj
Quoted 4 lines · Ross Burton

Previously this was done with the generic autotools support, but CMake doesn't have a standard option so set it explicitly.

Not particularly relevant to this patch but another approach could be to turn no-staticlibs into a distro feature and move these controls to respective recipes.
may be for next release ..

Quoted 25 lines
---
 meta/conf/distro/include/no-static-libs.inc | 1 +
 1 file changed, 1 insertion(+)
meta/conf/distro/include/no-static-libs.inc +1 -1
index 7fd578b3ce7..cdc53916d07 100644
@@ -36,6 +36,7 @@ DISABLE_STATIC_pn-libusb1-native = ""
 EXTRA_OECONF_append = "${DISABLE_STATIC}"
 
 EXTRA_OECMAKE_append_pn-libical = " -DSHARED_ONLY=True"
+EXTRA_OECMAKE_append_pn-libjpeg-turbo = " -DENABLE_STATIC=False"
 
 EXCONFIG_ARGS_append_pn-ncurses = " --without-normal"
 EXCONFIG_ARGS_append_pn-ncurses-native = " --without-normal"
--

2.11.0

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core