Skip to content

Commit

Permalink
Report library existence correctly
Browse files Browse the repository at this point in the history
Formerly the checks on Linux, whether a required library was found, reported the opposite of the actual result. A correctly configured system would thus report "not found"  for all the X11 and GTK libraries.
  • Loading branch information
mthies-unibi authored and mrjbq7 committed May 13, 2024
1 parent 23a33b6 commit bfcfc7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ check_library_exists() {
$ECHO -n "Checking for library $1..."
$ECHO "int main(){return 0;}" > $GCC_TEST
if $CC $GCC_TEST -o $GCC_OUT -l "$1" 2>&- ; then
$ECHO "not found."
else
$ECHO "found."
else
$ECHO "not found."
fi
rm -f $GCC_TEST
check_ret rm
Expand Down

0 comments on commit bfcfc7e

Please sign in to comment.