scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 2e52229810816fd631fbbd0dca6472a30e2e9323
parent 1de26472868d15174ef01a9655555340234c4dbe
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat,  2 Oct 2021 08:14:49 +0200

tests: Fix cc.sh wrapper

cc.sh is a wrapper that enables use of the scc libc needed in the
tests of the libc. This wrapper has to detect the correct way to
disable pie and that mechanism was failling.

Diffstat:
Mtests/libc/execute/cc.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/libc/execute/cc.sh b/tests/libc/execute/cc.sh @@ -44,7 +44,7 @@ ld=${CROSS_COMPILE}ld includes="-nostdinc -I$inc -I$arch_inc -I$sys_inc" flags="-std=c99 -g -w -fno-stack-protector --freestanding -static" -if ! ${cc} -nopie 2>&1 | grep unrecogn >/dev/null +if ${cc} -nopie 2>&1 | grep unrecogn >/dev/null then pie=-no-pie fi