ref: 2e52229810816fd631fbbd0dca6472a30e2e9323
parent: 1de26472868d15174ef01a9655555340234c4dbe
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Oct 2 04:14:49 EDT 2021
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.
--- a/tests/libc/execute/cc.sh
+++ b/tests/libc/execute/cc.sh
@@ -44,7 +44,7 @@
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