X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/bbe1e39616ea9682e2bff423a994f386fca0e617..7150f5906ab3b187cb82d86d923912b4e9cbad70:/rules.mk?ds=inline diff --git a/rules.mk b/rules.mk index 0a958c2d5..a6188f4a6 100644 --- a/rules.mk +++ b/rules.mk @@ -70,6 +70,7 @@ ifneq ($(CONFIG_CCACHE),) endif EXTRA_CPPFLAGS := -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include +EXTRA_CFLAGS := $(EXTRA_CPPFLAGS) EXTRA_LDFLAGS := -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib TARGET_CONFIGURE_OPTS:= \ @@ -86,6 +87,7 @@ TARGET_CONFIGURE_OPTS:= \ # strip an entire directory RSTRIP:= \ + NM="$(TARGET_CROSS)nm" \ STRIP="$(STRIP)" \ STRIP_KMOD="$(TARGET_CROSS)strip --strip-unneeded --remove-section=.comment" \ $(SCRIPT_DIR)/rstrip.sh