diff options
-rw-r--r-- | project/extras.mk | 16 |
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 |