X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/0c23be3463baa85752ec2c40000ecff346641fd5..bc5689e8e70c3f6b94562430eba3601007488f58:/include/prereq-build.mk diff --git a/include/prereq-build.mk b/include/prereq-build.mk index 0b396c83d..84d3f2274 100644 --- a/include/prereq-build.mk +++ b/include/prereq-build.mk @@ -62,7 +62,7 @@ $(eval $(call Require,working-gcc, \ define Require/working-g++ echo 'int main(int argc, char **argv) { return 0; }' | \ - g++ -x c++ -o $(TMP_DIR)/a.out -lstdc++ - && \ + g++ -x c++ -o $(TMP_DIR)/a.out - -lstdc++ && \ $(TMP_DIR)/a.out endef @@ -72,7 +72,7 @@ $(eval $(call Require,working-g++, \ define Require/ncurses echo 'int main(int argc, char **argv) { initscr(); return 0; }' | \ - gcc -include ncurses.h -x c -o $(TMP_DIR)/a.out -lncurses - + gcc -include ncurses.h -x c -o $(TMP_DIR)/a.out - -lncurses endef $(eval $(call Require,ncurses, \ @@ -82,7 +82,7 @@ $(eval $(call Require,ncurses, \ define Require/zlib echo 'int main(int argc, char **argv) { gzdopen(0, "rb"); return 0; }' | \ - gcc -include zlib.h -x c -o $(TMP_DIR)/a.out -lz - + gcc -include zlib.h -x c -o $(TMP_DIR)/a.out - -lz endef $(eval $(call Require,zlib, \ @@ -134,7 +134,7 @@ $(eval $(call RequireCommand,svn, \ )) define Require/gnu-find - $(FIND) $(TMP_DIR) -lname foo + $(FIND) --version 2>/dev/null endef $(eval $(call Require,gnu-find, \