Skip to content
Snippets Groups Projects
Commit a996cc14 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

add a build preeq check for glibc-static

SVN-Revision: 33121
parent df261c26
No related branches found
No related tags found
No related merge requests found
...@@ -70,6 +70,15 @@ $(eval $(call Require,working-g++, \ ...@@ -70,6 +70,15 @@ $(eval $(call Require,working-g++, \
Please install the GNU C++ Compiler (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 define Require/ncurses
echo 'int main(int argc, char **argv) { initscr(); return 0; }' | \ 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment