summaryrefslogtreecommitdiffhomepage
path: root/project
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-01-07 08:52:26 -0500
committermidipix <writeonce@midipix.org>2019-01-09 22:43:16 -0500
commit9a3eef0e157e3d458d704511a1dabfaea1db31d4 (patch)
treeb9cf36a3ad75411680d6f93004262fa18bfef738 /project
parent2f2b1c17cb9e6db0cacca52765f8bf701798ef18 (diff)
downloadmmglue-9a3eef0e157e3d458d704511a1dabfaea1db31d4.tar.bz2
mmglue-9a3eef0e157e3d458d704511a1dabfaea1db31d4.tar.xz
project: linking flags: (temporarily) associate --hash-style with ELF.
Diffstat (limited to 'project')
-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