make/chklib.sh@86c09da7a6ae
make/chklib.sh
Mon, 31 Aug 2026 18:35:13 +0200
- author
- Mike Becker <universe@uap-core.de>
- date
- Mon, 31 Aug 2026 18:35:13 +0200
- changeset 204
- 86c09da7a6ae
- parent 197
-
9cbd4f09a22f
- permissions
- -rwxr-xr-x
try to fix the use of ncurses extensions in colors.h
#!/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