summaryrefslogtreecommitdiffhomepage
path: root/project/extras.mk
diff options
context:
space:
mode:
Diffstat (limited to 'project/extras.mk')
-rw-r--r--project/extras.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/project/extras.mk b/project/extras.mk
index 112b8b0..73d6b39 100644
--- a/project/extras.mk
+++ b/project/extras.mk
@@ -12,11 +12,14 @@ 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
+ifeq ($(CC_BINFMT),ELF)
+LDFLAGS_COMMON += -Wl,--hash-style -Wl,both
+endif
+
# common cflags
CFLAGS_COMMON += -fdata-sections
CFLAGS_COMMON += -ffunction-sections