yocto中populate_sdk出来的工具链添加静态库

1、这点是否需要待验证

diff --git a/meta/conf/distro/include/no-static-libs.inc b/meta/conf/distro/include/no-static-libs.inc
index ee67383460..bac33068f6 100644
--- a/meta/conf/distro/include/no-static-libs.inc
+++ b/meta/conf/distro/include/no-static-libs.inc
@@ -1,4 +1,4 @@
-DISABLE_STATIC ?= " --disable-static"
+DISABLE_STATIC ?= ""

 # qemu aborts on unrecognised option
 DISABLE_STATIC:pn-qemu = ""

2、在local.conf中添加一行:

SDKIMAGE_FEATURES:append = "staticdev-pkgs"

你可能感兴趣的:(linux)