소스 검색

workaround for libelf on Cygwin

Waldemar Brodkorb 11 년 전
부모
커밋
5f591665d8
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  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 \