]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Francesco Chemolli <kinkie@squid-cache.org>
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 22 Nov 2009 20:09:33 +0000 (09:09 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 22 Nov 2009 20:09:33 +0000 (09:09 +1300)
Fix testheaders.sh to work with non-gcc compilers. build a true executable.

test-suite/testheaders.sh

index 973c2160004a986d0f294b5844c22d9e82393e94..457496a12eb6366d573d3abcddcbd6d564d8f16b 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
@@ -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