summaryrefslogtreecommitdiff
path: root/kc/defaults.mk
diff options
context:
space:
mode:
Diffstat (limited to 'kc/defaults.mk')
-rw-r--r--kc/defaults.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/kc/defaults.mk b/kc/defaults.mk
index 0b6c4ba..ec6dfd3 100644
--- a/kc/defaults.mk
+++ b/kc/defaults.mk
@@ -1,7 +1,9 @@
-LIBDIRS += -L$(dir $(shell $(CC) -print-libgcc-file-name))
LDSCRIPT := ../kc.ld
+
+CFLAGS += -fPIC -fvisibility=hidden -mgeneral-regs-only
+
LDFLAGS += -z max-page-size=4096 --export-dynamic -pic \
- -z separate-code -pie -Bsymbolic -shared
-LOADLIBES := -lgcc
+ -z separate-code -pie -Bsymbolic -shared \
+ -z execstack -g