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-a3cf2f4a3e73master
parent
0e5127758a
commit
df53503434
6
rules.mk
6
rules.mk
|
@ -39,6 +39,12 @@ SUBDIR:=$(patsubst $(TOPDIR)/%,%,${CURDIR})
|
||||||
|
|
||||||
OPTIMIZE_FOR_CPU=$(ARCH)
|
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)
|
DL_DIR:=$(if $(call qstrip,$(CONFIG_DOWNLOAD_FOLDER)),$(call qstrip,$(CONFIG_DOWNLOAD_FOLDER)),$(TOPDIR)/dl)
|
||||||
BIN_DIR:=$(TOPDIR)/bin
|
BIN_DIR:=$(TOPDIR)/bin
|
||||||
INCLUDE_DIR:=$(TOPDIR)/include
|
INCLUDE_DIR:=$(TOPDIR)/include
|
||||||
|
|
Loading…
Reference in New Issue