From 967a3a16aa0de2082a2854166124abd1dfa28dea Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Mon, 23 Nov 2009 09:09:33 +1300 Subject: [PATCH] Author: Francesco Chemolli Fix testheaders.sh to work with non-gcc compilers. build a true executable. --- test-suite/testheaders.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test-suite/testheaders.sh b/test-suite/testheaders.sh index 973c216000..457496a12e 100755 --- a/test-suite/testheaders.sh +++ b/test-suite/testheaders.sh @@ -27,7 +27,7 @@ for f in `cd ${dir} && ls -1 *.h 2>/dev/null`; do # run compile test on the new file. # DEBUG: echo "TRY: ${cc} -o testHeaderDeps.o ./testHeaderDeps_${hdr}.cc" - ${cc} -o testHeaderDeps_${hdr}.o ./testHeaderDeps_${hdr}.cc + ${cc} -c -o testHeaderDeps_${hdr}.o ./testHeaderDeps_${hdr}.cc rm ./testHeaderDeps_${hdr}.cc fi if [ ! -f testHeaderDeps_${hdr}.o ]; then @@ -36,6 +36,7 @@ for f in `cd ${dir} && ls -1 *.h 2>/dev/null`; do fi echo "OK." # unit-tests require an app to run. - # our most-recent object suits this purpose - cp ./testHeaderDeps_${hdr}.o ./testHeaders + # our most-recent object suits this purpose. + # let's link or some tests will fail + ${cc} ./testHeaderDeps_${hdr}.o -o ./testHeaders done -- 2.47.3