scc

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

commit 889be8059b950fe455e2f628438e2a9fee82331c
parent 50823e3a5e52629d8eee8980583e1387aeb75d86
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