aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorSergey V. Lobanov <sergey@lobanov.in>2022-01-15 16:10:47 +0300
committerHauke Mehrtens <hauke@hauke-m.de>2022-01-16 22:13:46 +0100
commit87d489f67a35968242cd4f192dc363dc87056844 (patch)
treeeb238a8c07b94fdb6f16fe675c646d76dcb6b90d /rules.mk
parentf1d4c77766f9fe2e56a1208932a7650f2896fff6 (diff)
downloadupstream-87d489f67a35968242cd4f192dc363dc87056844.tar.gz
upstream-87d489f67a35968242cd4f192dc363dc87056844.tar.bz2
upstream-87d489f67a35968242cd4f192dc363dc87056844.zip
build: add HOST_CXXFLAGS for host build
Added HOST_CXXFLAGS to specify CXXFLAGS during host-compile (e.g. to specify c++ standard: HOST_CXXFLAGS += -std=c++11) Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index 45b58614f1..57c3bca7d9 100644
--- a/rules.mk
+++ b/rules.mk
@@ -240,6 +240,7 @@ export PKG_CONFIG
HOSTCC:=gcc
HOSTCXX:=g++
HOST_CPPFLAGS:=-I$(STAGING_DIR_HOST)/include $(if $(IS_PACKAGE_BUILD),-I$(STAGING_DIR_HOSTPKG)/include -I$(STAGING_DIR)/host/include)
+HOST_CXXFLAGS:=
HOST_CFLAGS:=-O2 $(HOST_CPPFLAGS)
HOST_LDFLAGS:=-L$(STAGING_DIR_HOST)/lib $(if $(IS_PACKAGE_BUILD),-L$(STAGING_DIR_HOSTPKG)/lib -L$(STAGING_DIR)/host/lib)