X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/f3940a66750b2edb681ac351d93c8ebdd18dc0aa..5af0df16d07fbff270ccd6e4bb1cbd2f2d869c83:/include/package.mk diff --git a/include/package.mk b/include/package.mk index 95508bc5d..389ee5b6b 100644 --- a/include/package.mk +++ b/include/package.mk @@ -303,12 +303,14 @@ CONFIGURE_ARGS := \ --infodir=/usr/info \ $(DISABLE_NLS) +TARGET_CPPFLAGS=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include +TARGET_LDFLAGS=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib CONFIGURE_VARS:= \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ CXXFLAGS="$(TARGET_CFLAGS)" \ - CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ - LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ + CPPFLAGS="$(TARGET_CPPFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \ PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig"