projects
/
oweals
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce8903f
)
add a variable that contains the proper architecture-dependent -fPIC/-fpic cflag...
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 6 Aug 2008 22:10:20 +0000
(22:10 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 6 Aug 2008 22:10:20 +0000
(22:10 +0000)
SVN-Revision: 12224
rules.mk
patch
|
blob
|
history
diff --git
a/rules.mk
b/rules.mk
index 5a54c536d984d97a891c89d2928a8e5da4c2d639..6b081bba55dd29ca1618a217dee0efd29d99eeac 100644
(file)
--- 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