dfu-util-native: Dont build static binary
PATCH 1/1 dfu-util-native: Dont build static binary
This did serve a purpose in past, this however is adding additional requirement on build host to require static libc.a. in general it will be good for user to select static linking explicitly, since it does have distribution obligations once static linking is in place.
Add packageconfig to enable static builds and keep it off by default
Signed-off-by Khem Raj <[email protected]>
Cc Martin JaMa Jansa <[email protected]>
--- .../dfu-util/dfu-util-native_0.9.bb | 7 +- ...ert-Makefile.am-Drop-static-dfu-util.patch | 68 ------------------- 2 files changed, 5 insertions(+), 70 deletions(-) delete mode 100644 meta-oe/recipes-support/dfu-util/dfu-util/0001-Revert-Makefile.am-Drop-static-dfu-util.patch
meta-oe/recipes-support/dfu-util/dfu-util-native_0.9.bb +5 -2
@@ -4,12 +4,15 @@ inherit native deploy DEPENDS = "libusb1-native" -SRC_URI += "file://0001-Revert-Makefile.am-Drop-static-dfu-util.patch" +PACKAGECONFIG ??= "" + +PACKAGECONFIG[static] = "CFLAGS='${CFLAGS} -pthread -static',," do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_TOOLS}" do_deploy() { - install -m 0755 src/dfu-util_static ${DEPLOYDIR}/dfu-util-${PV} + install -m 0755 src/dfu-util ${DEPLOYDIR}/dfu-util-${PV} rm -f ${DEPLOYDIR}/dfu-util ln -sf ./dfu-util-${PV} ${DEPLOYDIR}/dfu-util } + addtask deploy before do_package after do_install
meta-oe/recipes-support/dfu-util/dfu-util/0001-Revert-Makefile.am-Drop-static-dfu-util.patch deleted +0 -68
68 lines not on this page · raw message
Signature · 1 line
2.23.0