X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/9435e670b41af420f6172b51e4800c91a5fa61c5..b40bc2899b2e399c07e4b0b1dda0f9cfcb9c8b5a:/include/autotools.mk diff --git a/include/autotools.mk b/include/autotools.mk index f85026a94..c941a4949 100644 --- a/include/autotools.mk +++ b/include/autotools.mk @@ -32,15 +32,13 @@ update_libtool_ucxx = \ ) \ $(call update_libtool_common) +autoconf_bool = $(patsubst %,$(if $($(1)),--enable,--disable)-%,$(2)) # prevent libtool from linking against host development libraries define libtool_fixup_libdir find $(1) -name '*.la' | $(XARGS) \ $(SED) "s,\(^libdir='\| \|-L\|^dependency_libs='\)/usr/lib,\1$(STAGING_DIR)/usr/lib,g" \ -e "s,$(STAGING_DIR)/usr/lib/\(libstdc++\|libsupc++\).la,$(TOOLCHAIN_DIR)/usr/lib/\1.la,g" - find $(2) -name '*.la' | $(XARGS) \ - $(SED) "s,\(^libdir='\| \|-L\|^dependency_libs='\)/usr/lib,\1$(STAGING_DIR)/usr/lib,g" \ - -e "s,$(STAGING_DIR)/usr/lib/\(libstdc++\|libsupc++\).la,$(TOOLCHAIN_DIR)/usr/lib/\1.la,g" endef define remove_version_check