summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index 5a54c536d9..6b081bba55 100644
--- a/rules.mk
+++ b/rules.mk
@@ -39,6 +39,12 @@ SUBDIR:=$(patsubst $(TOPDIR)/%,%,${CURDIR})
OPTIMIZE_FOR_CPU=$(ARCH)
+ifeq ($(ARCH),powerpc)
+ FPIC:=-fPIC
+else
+ FPIC:=-fpic
+endif
+
DL_DIR:=$(if $(call qstrip,$(CONFIG_DOWNLOAD_FOLDER)),$(call qstrip,$(CONFIG_DOWNLOAD_FOLDER)),$(TOPDIR)/dl)
BIN_DIR:=$(TOPDIR)/bin
INCLUDE_DIR:=$(TOPDIR)/include