summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-12-11 00:27:48 +0000
committerMike Frysinger <vapier@gentoo.org>2006-12-11 00:27:48 +0000
commit14db067a8bdcdc7a25d30e2bb662d271f0d995e7 (patch)
treeb86110a293ebaf5d563ace889098fc9bc2f58772 /Rules.mak
parente1d59aed553bce7018873da60c712d711d080f8d (diff)
tie PICFLAG:=-mfdpic to format rather than architecture
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak11
1 files changed, 5 insertions, 6 deletions
diff --git a/Rules.mak b/Rules.mak
index 38dfa0918..5f404489a 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -143,7 +143,11 @@ OPTIMIZATION+=$(call check_gcc,-fno-tree-dominator-opts,)
OPTIMIZATION+=$(call check_gcc,-fno-strength-reduce,)
endif
-PICFLAG:=-fPIC
+ifeq ($(UCLIBC_FORMAT_FDPIC_ELF),y)
+ PICFLAG:=-mfdpic
+else
+ PICFLAG:=-fPIC
+endif
PIEFLAG_NAME:=-fPIE
# Some nice CPU specific optimizations
@@ -282,13 +286,8 @@ ifeq ($(TARGET_ARCH),powerpc)
PIEFLAG_NAME:=-fpie
endif
-ifeq ($(TARGET_ARCH),bfin)
- PICFLAG:=-mfdpic
-endif
-
ifeq ($(TARGET_ARCH),frv)
CPU_LDFLAGS-$(CONFIG_FRV)+=-melf32frvfd
- CPU_CFLAGS-$(CONFIG_FRV)+=-mfdpic
# Using -pie causes the program to have an interpreter, which is
# forbidden, so we must make do with -shared. Unfortunately,
# -shared by itself would get us global function descriptors