ref: a91402c720c0b7a791a0df888a2707cf497cb6fe
parent: 74c223987d55d20be4b1b52477ff91f83b9e5b31
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Aug 26 09:44:46 EDT 2018
[tests/libc] Don't search in defaut lib directories We are fully replacing the standard libc, so there is no point of trying to link with the system libc.
--- a/tests/libc/execute/cc.sh
+++ b/tests/libc/execute/cc.sh
@@ -33,4 +33,4 @@
obj=${1%.c}.o
c99 -nostdinc -I$inc -I$arch_inc -c $1
-ld -L$lib $lib/crt.o $obj -lc
+ld -z nodefaultlib -static -L$lib $lib/crt.o $obj -lc