From 9a3eef0e157e3d458d704511a1dabfaea1db31d4 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 7 Jan 2019 08:52:26 -0500 Subject: project: linking flags: (temporarily) associate --hash-style with ELF. --- project/extras.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3