From: Michael Büsch Date: Thu, 4 Nov 2010 18:12:56 +0000 (+0000) Subject: elinks: Fix configure cache var for complex paths X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=04e154972ad6822465bde534ed1ec7e242e6458b elinks: Fix configure cache var for complex paths SVN-Revision: 23874 --- diff --git a/net/elinks/Makefile b/net/elinks/Makefile index 42b0f53f48..db2970c092 100644 --- a/net/elinks/Makefile +++ b/net/elinks/Makefile @@ -30,10 +30,14 @@ define Package/elinks/description An advanced text based web browser endef +SHVAR_TRANS:= \ + $(STAGING_DIR_HOST)/bin/sed -e \ + 'y%*+%pp%;s%[^_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]%_%g' + define Build/Configure (cd $(PKG_BUILD_DIR); rm -rf config.cache; \ - x=`echo ac_cv_file_./features.conf | tr [:blank:]-/. _` && export $$$${x}=yes && \ - x=`echo ac_cv_file_$(PKG_BUILD_DIR)/features.conf | tr [:blank:]-/. _` && export $$$${x}=yes && \ + x=`echo ac_cv_file_./features.conf | $(SHVAR_TRANS)` && export $$$${x}=yes && \ + x=`echo ac_cv_file_$(abspath $(PKG_BUILD_DIR)/features.conf) | $(SHVAR_TRANS)` && export $$$${x}=yes && \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ CPPFLAGS="$(TARGET_CPPFLAGS)" \