aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Büsch <mb@bu3sch.de>2010-10-23 20:30:43 +0000
committerMichael Büsch <mb@bu3sch.de>2010-10-23 20:30:43 +0000
commitb935c0d30f4b95d4daac3e877a95f4376656ae02 (patch)
treed144ed0168dd83d09397749d545701a371e08ff3
parent313b48a4eccd2c53ef58494403b8e9a413f49347 (diff)
downloadupstream-b935c0d30f4b95d4daac3e877a95f4376656ae02.tar.gz
upstream-b935c0d30f4b95d4daac3e877a95f4376656ae02.tar.bz2
upstream-b935c0d30f4b95d4daac3e877a95f4376656ae02.zip
Add HOST_FPIC. It currently always is -fPIC, because that should work on all platforms, even if it may generate slightly inefficient code on some arches.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23598 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--rules.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index 7d3516bc42..23445bfaee 100644
--- a/rules.mk
+++ b/rules.mk
@@ -47,6 +47,8 @@ else
FPIC:=-fpic
endif
+HOST_FPIC:=-fPIC
+
ARCH_SUFFIX:=
ifneq ($(findstring -mips32r2,$(TARGET_OPTIMIZATION)),)
ARCH_SUFFIX:=_r2