shithub: scc

Download patch

ref: c324923f5d3acc16627e14e71f6ba0c75d8084d9
parent: c6075c2fb1e68d303490be87269a65db3608559b
author: Roberto E. Vargas Caballero <[email protected]>
date: Sun Sep 2 03:12:50 EDT 2018

[tests/libc] Test with debug informatio included

--- a/lib/c/target/amd64-sysv-netbsd/Makefile
+++ b/lib/c/target/amd64-sysv-netbsd/Makefile
@@ -4,7 +4,7 @@
 include $(PROJECTDIR)/rules.mk
 
 SYSNAME    = amd64-sysv-netbsd
-SCC_CFLAGS = -static -nostdinc -I$(INCDIR) -I$(INCDIR)/bits/amd64-sysv/ -I.
+SCC_CFLAGS = -g -static -nostdinc -I$(INCDIR) -I$(INCDIR)/bits/amd64-sysv/ -I.
 SYSOBJ = raise.o signal.o _sigaction.o _sigaction2.o _setcontext.o
 
 include syscall.mk
--- a/lib/c/target/amd64-sysv-openbsd/Makefile
+++ b/lib/c/target/amd64-sysv-openbsd/Makefile
@@ -4,7 +4,7 @@
 include $(PROJECTDIR)/rules.mk
 
 SYSNAME    = amd64-sysv-openbsd
-SCC_CFLAGS = -fno-stack-protector -static -nostdinc -I$(INCDIR) -I$(INCDIR)/bits/amd64-sysv/ -I.
+SCC_CFLAGS = -g -fno-stack-protector -static -nostdinc -I$(INCDIR) -I$(INCDIR)/bits/amd64-sysv/ -I.
 SYSOBJ     = raise.o signal.o _sigaction.o
 
 include syscall.mk
--- a/tests/libc/execute/cc.sh
+++ b/tests/libc/execute/cc.sh
@@ -37,5 +37,5 @@
 lib=$root/lib/scc/${abi}-${sys}
 obj=${1%.c}.o
 
-gcc -fno-stack-protector --freestanding -std=c99 -static -nostdinc -I$inc -I$arch_inc -c $1
-ld -z nodefaultlib -static -L$lib $lib/crt.o $obj -lc -o $out
+gcc -g -fno-stack-protector --freestanding -std=c99 -static -nostdinc -I$inc -I$arch_inc -c $1
+ld -g -z nodefaultlib -static -L$lib $lib/crt.o $obj -lc -o $out