From: Amos Jeffries Date: Sun, 22 Nov 2009 20:09:33 +0000 (+1300) Subject: Author: Francesco Chemolli X-Git-Tag: SQUID_3_1_0_15~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=967a3a16aa0de2082a2854166124abd1dfa28dea;p=thirdparty%2Fsquid.git Author: Francesco Chemolli Fix testheaders.sh to work with non-gcc compilers. build a true executable. --- 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