summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4d70e09..773c346 100644
--- a/Makefile
+++ b/Makefile
@@ -18,10 +18,12 @@ libtco.a: tco.o
${AR} -crs $@ $^
libtco.so: tco.o
- ${CC} -shared $^ -o $@ ${LDFLAGS}
+ ${CC} -shared $^ -o $@ -Wl,-soname,$@ ${LDFLAGS}
%.o: %.asm
fasm $< $@
+ objcopy --add-section ".note.GNU-stack"=/dev/null \
+ --set-section-flags ".note.GNU-stack"=contents,readonly $@
clean:
rm -f tco.o libtco.a libtco.so