X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/2880f4e791d421a5763193a55d7e657fae0906c9..ec6be5b316220eab85c2010a63fe9292567f0d47:/rules.mk diff --git a/rules.mk b/rules.mk index 77331185e..cd5446ace 100644 --- a/rules.mk +++ b/rules.mk @@ -32,7 +32,7 @@ SUBDIR:=$(patsubst $(TOPDIR)/%,%,${CURDIR}) OPTIMIZE_FOR_CPU:=$(ARCH) -DL_DIR:=$(TOPDIR)/dl +DL_DIR:=$(call qstrip,$(if $(CONFIG_DOWNLOAD_FOLDER), $(CONFIG_DOWNLOAD_FOLDER),$(TOPDIR)/dl)) BIN_DIR:=$(TOPDIR)/bin INCLUDE_DIR:=$(TOPDIR)/include SCRIPT_DIR:=$(TOPDIR)/scripts @@ -63,6 +63,11 @@ TARGET_LDFLAGS:=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib export PATH:=$(TARGET_PATH) export STAGING_DIR +export GCC_HONOUR_COPTS:=0 + +PKG_CONFIG:=$(STAGING_DIR_HOST)/bin/pkg-config + +export PKG_CONFIG LINUX_HEADERS_DIR:=$(BUILD_DIR_TOOLCHAIN)/linux