summaryrefslogtreecommitdiffhomepage
path: root/project
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-01-07 06:41:14 -0500
committermidipix <writeonce@midipix.org>2019-01-09 22:43:15 -0500
commitbfd5032fecd9704514c27f4021c8e084df188710 (patch)
tree019d0cde2a9fb363e960c051d3f7e5a43bd9d376 /project
parent2cd53ff88d3f114de8e8c20993123aa7edaf1231 (diff)
downloadmmglue-bfd5032fecd9704514c27f4021c8e084df188710.tar.bz2
mmglue-bfd5032fecd9704514c27f4021c8e084df188710.tar.xz
project: added libc.so's linking flags.
Diffstat (limited to 'project')
-rw-r--r--project/extras.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/project/extras.mk b/project/extras.mk
index 80ac425..e77efac 100644
--- a/project/extras.mk
+++ b/project/extras.mk
@@ -1,2 +1,18 @@
./src/internal/version.o: build/version.h
./src/internal/version.lo: build/version.h
+
+# libc.so
+SHARED_OBJS += $(LDSO_OBJS)
+
+LDFLAGS_COMMON += -nostdlib
+LDFLAGS_COMMON += -Wl,-Bsymbolic-functions
+LDFLAGS_COMMON += -Wl,--sort-common
+LDFLAGS_COMMON += -Wl,--gc-sections
+LDFLAGS_COMMON += -Wl,--no-undefined
+LDFLAGS_COMMON += -Wl,--exclude-libs=ALL
+
+LDFLAGS_COMMON += -Wl,-e -Wl,_dlstart
+LDFLAGS_COMMON += -Wl,--hash-style -Wl,both
+LDFLAGS_COMMON += -Wl,--sort-section -Wl,alignment
+
+SHARED_LIB_DEPS += -lgcc -lgcc_eh