make/chklib.sh@93e0e89496fe
make/chklib.sh
Tue, 08 Sep 2026 14:34:48 +0200
- author
- Mike Becker <universe@uap-core.de>
- date
- Tue, 08 Sep 2026 14:34:48 +0200
- changeset 224
- 93e0e89496fe
- parent 197
-
9cbd4f09a22f
- permissions
- -rwxr-xr-x
test and ensure C++ compatibility of chess headers
do not need C++ compatibility of terminal-chess application, though
relates to #986
#!/bin/sh
libname="$1"
cc="$CC"
if test -z "$cc"; then cc=cc; fi
if test -z "$libname"; then exit 1; fi
echo 'int main(){return 0;}' > .chklib-test.c
if $cc -o /dev/null .chklib-test.c "-l$libname" ; then
rm .chklib-test.c
exit 0
else
rm .chklib-test.c
exit 1
fi