
Test programs are only compiled when running `make check`. Also, fix passing $CFLAGS argument to make. Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
14 lines
205 B
Bash
Executable file
14 lines
205 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
CFLAGS="-Werror"
|
|
|
|
if [ "$CC" = "clang" ]; then
|
|
CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument"
|
|
fi
|
|
|
|
./autogen.sh
|
|
./configure
|
|
make CFLAGS="$CFLAGS"
|
|
make CFLAGS="$CFLAGS" check
|