summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-10-23 20:30:43 +0000
committermb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-10-23 20:30:43 +0000
commit23f0f29a8e0198f5b3fb0d41ca8144d84ec80b81 (patch)
treed144ed0168dd83d09397749d545701a371e08ff3
parent7aa159ad8964b83b3545070b656dde75b45a932d (diff)
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