summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-06-22 07:11:53 +0000
committerMike Frysinger <vapier@gentoo.org>2007-06-22 07:11:53 +0000
commitdcad31e64c6db2c36fc9ada1e15ba6e930f2ff8c (patch)
treebd53b577e870a920ddf555addffc4b6ad8c5092f
parent23a4b23a9a4a1668950c4c264e9f99d73bf935f6 (diff)
pull from Blackfin repo: add -mid-shared-library for UCLIBC_FORMAT_SHARED_FLAT and -msep-data for UCLIBC_FORMAT_FLAT_SEP_DATA
-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