From: Jo-Philipp Wich Date: Fri, 10 Aug 2012 23:35:20 +0000 (+0000) Subject: add a build preeq check for glibc-static X-Git-Tag: attitude_adjustment_12.09~646 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a996cc1444f71e867e56c4211b859b54d67c7986;p=openwrt%2Fsvn-archive%2Fopenwrt.git add a build preeq check for glibc-static SVN-Revision: 33121 --- diff --git a/include/prereq-build.mk b/include/prereq-build.mk index 228fcdcb0b..28c2a216b2 100644 --- a/include/prereq-build.mk +++ b/include/prereq-build.mk @@ -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