]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix testheaders.sh to work with non-gcc compilers
authorFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 19 Nov 2009 22:44:47 +0000 (23:44 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 19 Nov 2009 22:44:47 +0000 (23:44 +0100)
test-suite/testheaders.sh

index 973c2160004a986d0f294b5844c22d9e82393e94..41429438ca590b7809bd109b2589593b79937529 100755 (executable)
@@ -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