Browse Source

workaround for libelf on Cygwin

Waldemar Brodkorb 9 years ago
parent
commit
5f591665d8
1 changed files with 11 additions and 0 deletions
  1. 11 0
      toolchain/libelf/Makefile

+ 11 - 0
toolchain/libelf/Makefile

@@ -12,6 +12,17 @@ endif
 
 $(WRKBUILD)/.headers:
 $(WRKBUILD)/.configured:
+	@cd ${WRKBUILD}; \
+	    for i in $$(find . -name config.sub);do \
+		if [ -f $$i ]; then \
+			${CP} ${SCRIPT_DIR}/config.sub $$i; \
+		fi; \
+	    done; \
+	    for i in $$(find . -name config.guess);do \
+		if [ -f $$i ]; then \
+			${CP} ${SCRIPT_DIR}/config.guess $$i; \
+	        fi; \
+	    done;
 	(cd $(WRKBUILD); \
 		$(WRKBUILD)/configure \
 		--prefix=$(STAGING_HOST_DIR)/usr \