From a5bec997a20e1c25aa6e09afa66dde4845a71d13 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Sun, 25 Apr 2010 08:57:01 +1000 Subject: [PATCH] tests/pedantic-header-test.sh.in : Fix out of tree builds. --- tests/pedantic-header-test.sh.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/pedantic-header-test.sh.in b/tests/pedantic-header-test.sh.in index aefa8de5..afa59bc2 100644 --- a/tests/pedantic-header-test.sh.in +++ b/tests/pedantic-header-test.sh.in @@ -36,8 +36,9 @@ echo -n " Pedantic header test : " # Only do this if the compiler is GCC. if test -n "@GCC_MAJOR_VERSION@" ; then + CC=`echo "@CC@" | sed "s/.* //"` # Compile with -Werror and -pedantic. - @CC@ -std=c99 -Werror -pedantic -I@top_srcdir@/src -c @top_srcdir@/tests/sfversion.c -o /dev/null + $CC -std=c99 -Werror -pedantic -I@top_builddir@/src -c @top_srcdir@/tests/sfversion.c -o /dev/null # Check compiler return status. if test $? -ne 0 ; then