[include] add a build preeq check for glibc-static

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33121 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
Jo-Philipp Wich
2012-08-10 23:35:20 +00:00
parent 06d0aa1fb6
commit 727a3dd0fa

View File

@@ -70,6 +70,15 @@ $(eval $(call Require,working-g++, \
Please install the GNU C++ Compiler (g++). \
))
define Require/working-gcc-static
echo 'int main(int argc, char **argv) { return 0; }' | \
gcc -x c -static -o $(TMP_DIR)/a.out -
endef
$(eval $(call Require,working-gcc-static, \
Please install the static libc development package (glibc-static on CentOS/Fedora/RHEL). \
))
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