summaryrefslogtreecommitdiff
path: root/package/gcc/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-05 11:54:26 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-03-05 11:54:26 +0100
commit0693e599c648cbf8bdbd801e1eade92338e6af32 (patch)
tree1d55da711b954c47ca51d7527264d807f7b046e2 /package/gcc/Makefile
parentb52a881b03cdd926ec06ccaca7b4d7d63fc3cb8c (diff)
fix gcc cross compilation
Diffstat (limited to 'package/gcc/Makefile')
-rw-r--r--package/gcc/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/package/gcc/Makefile b/package/gcc/Makefile
index 6d8ee9620..c0c5f749a 100644
--- a/package/gcc/Makefile
+++ b/package/gcc/Makefile
@@ -21,9 +21,13 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,GCC,gcc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,GXX,g++,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-TARGET_CPPFLAGS:= ''
-TARGET_CFLAGS:= ''
-TARGET_CXXFLAGS:= ''
+CPPFLAGS_FOR_BUILD:= -I$(STAGING_HOST_DIR)/include
+CFLAGS_FOR_BUILD:=
+LDFLAGS_FOR_BUILD:=
+TARGET_CPPFLAGS:=
+TARGET_CFLAGS:=
+TARGET_LDFLAGS:=
+TARGET_CXXFLAGS:=
ifeq ($(ADK_TARGET_SYSTEM_LEMOTE_YEELONG),y)
CONFIGURE_ARGS+= --with-abi=$(ADK_TARGET_MIPS_ABI)