diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-08-06 22:10:20 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-08-06 22:10:20 +0000 |
commit | df535034341a4080b80a4fd27fe337f446f2a904 (patch) | |
tree | d946749747a95dabe9820eb616ca871060abf42c /rules.mk | |
parent | 0e5127758a9bdd1e1b370ed34080f095d03ac777 (diff) | |
download | upstream-df535034341a4080b80a4fd27fe337f446f2a904.tar.gz upstream-df535034341a4080b80a4fd27fe337f446f2a904.tar.bz2 upstream-df535034341a4080b80a4fd27fe337f446f2a904.zip |
add a variable that contains the proper architecture-dependent -fPIC/-fpic cflag for building shared libraries
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12224 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |