summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Rules.mak10
1 files changed, 5 insertions, 5 deletions
diff --git a/Rules.mak b/Rules.mak
index d054bbb79..ef3d786e4 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -153,11 +153,11 @@ OPTIMIZATION+=$(call check_gcc,-fno-tree-dominator-opts,)
OPTIMIZATION+=$(call check_gcc,-fno-strength-reduce,)
endif
-ifeq ($(UCLIBC_FORMAT_FDPIC_ELF),y)
- PICFLAG:=-mfdpic
-else
- PICFLAG:=-fPIC
-endif
+CPU_CFLAGS-$(UCLIBC_FORMAT_SHARED_FLAT) += -mid-shared-library
+CPU_CFLAGS-$(UCLIBC_FORMAT_FLAT_SEP_DATA) += -msep-data
+
+PICFLAG-y := -fPIC
+PICFLAG-$(UCLIBC_FORMAT_FDPIC_ELF) := -mfdpic
PIEFLAG_NAME:=-fPIE
# Some nice CPU specific optimizations