X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/062a258f588a3eea1f4d2154069828cce77e55bf..bcb63b9e02655fcf61541edfd053780fce0c67dd:/include/autotools.mk diff --git a/include/autotools.mk b/include/autotools.mk index e1535d0b1..1ddb49b7d 100644 --- a/include/autotools.mk +++ b/include/autotools.mk @@ -32,12 +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" + -e "s,$(STAGING_DIR)/usr/lib/\(libstdc++\|libsupc++\).la,$(TOOLCHAIN_DIR)/lib/\1.la,g" endef define remove_version_check