check for zlib.h as well
authorFelix Fietkau <nbd@openwrt.org>
Wed, 19 Jul 2006 16:51:37 +0000 (16:51 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 19 Jul 2006 16:51:37 +0000 (16:51 +0000)
SVN-Revision: 4170

openwrt/include/prereq.mk

index c51953b619e1d51f5495a3a5a564a30fd6b3c175..6b3621dbacad827e5138c9f39b1ecadecfe9ce14 100644 (file)
@@ -83,7 +83,7 @@ $(eval $(call Require,working-g++, \
 
 define Require/zlib
        echo 'int main(int argc, char **argv) { gzdopen(0, "rb"); return 0; }' | \
-               gcc -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, \