ref: 7b139123693c6ff42c54d81a56a6318cf50c3058
parent: d764f1b643106a1e028f18104fe458a53ee39913
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Aug 26 06:29:35 EDT 2018
[lib/c] Add -static to gcc when compiling libraries Avoid unneeded sections.
--- a/lib/c/target/amd64-sysv-linux/Makefile
+++ b/lib/c/target/amd64-sysv-linux/Makefile
@@ -4,7 +4,7 @@
include $(PROJECTDIR)/rules.mk
SYSNAME = amd64-sysv-linux
-SCC_CFLAGS = -nostdinc -I$(INCDIR) -I$(INCDIR)/bits/amd64-sysv/ -I.
+SCC_CFLAGS = -static -nostdinc -I$(INCDIR) -I$(INCDIR)/bits/amd64-sysv/ -I.
SYSOBJ = raise.o signal.o
include syscall.mk
--- 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 = -nostdinc -I$(INCDIR) -I$(INCDIR)/bits/amd64-sysv/ -I.
+SCC_CFLAGS = -static -nostdinc -I$(INCDIR) -I$(INCDIR)/bits/amd64-sysv/ -I.
SYSOBJ = raise.o signal.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-netbsd
-SCC_CFLAGS = -nostdinc -I$(INCDIR) -I$(INCDIR)/bits/amd64-sysv/ -I.
+SCC_CFLAGS = -static -nostdinc -I$(INCDIR) -I$(INCDIR)/bits/amd64-sysv/ -I.
SYSOBJ = raise.o
include syscall.mk