aboutsummaryrefslogtreecommitdiff
path: root/depends/hosts
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2021-09-09 14:21:01 +0800
committerfanquake <fanquake@gmail.com>2022-06-16 17:01:05 +0100
commitf7595f1354f4618436fdab232000dc152bff315a (patch)
tree6bfe6ced406cc2f0b8f6b7c4e2642afe324c0913 /depends/hosts
parent7e7b3e42fa98b584ae60513a6774037bf677b8ce (diff)
build: add and use CXX_STANDARD in depends
Diffstat (limited to 'depends/hosts')
-rw-r--r--depends/hosts/android.mk1
-rw-r--r--depends/hosts/darwin.mk2
-rw-r--r--depends/hosts/freebsd.mk2
-rw-r--r--depends/hosts/linux.mk2
-rw-r--r--depends/hosts/mingw32.mk2
-rw-r--r--depends/hosts/netbsd.mk2
-rw-r--r--depends/hosts/openbsd.mk2
7 files changed, 7 insertions, 6 deletions
diff --git a/depends/hosts/android.mk b/depends/hosts/android.mk
index b5ca179b3d..b53966dcf8 100644
--- a/depends/hosts/android.mk
+++ b/depends/hosts/android.mk
@@ -7,6 +7,7 @@ android_CC=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)$(ANDROID_API_LEVEL)-clang
endif
android_CFLAGS=-std=$(C_STANDARD)
+android_CXXFLAGS=-std=$(CXX_STANDARD)
ifneq ($(LTO),)
android_CFLAGS += -flto
diff --git a/depends/hosts/darwin.mk b/depends/hosts/darwin.mk
index ca31403d4d..8507e28532 100644
--- a/depends/hosts/darwin.mk
+++ b/depends/hosts/darwin.mk
@@ -110,7 +110,7 @@ darwin_CXX=env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH \
-Xclang -internal-externc-isystem$(OSX_SDK)/usr/include
darwin_CFLAGS=-pipe -std=$(C_STANDARD)
-darwin_CXXFLAGS=-pipe
+darwin_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
ifneq ($(LTO),)
darwin_CFLAGS += -flto
diff --git a/depends/hosts/freebsd.mk b/depends/hosts/freebsd.mk
index b4dcc61c2f..5351d0b900 100644
--- a/depends/hosts/freebsd.mk
+++ b/depends/hosts/freebsd.mk
@@ -1,5 +1,5 @@
freebsd_CFLAGS=-pipe -std=$(C_STANDARD)
-freebsd_CXXFLAGS=-pipe
+freebsd_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
ifneq ($(LTO),)
freebsd_CFLAGS += -flto
diff --git a/depends/hosts/linux.mk b/depends/hosts/linux.mk
index d32d7e84ab..b101043439 100644
--- a/depends/hosts/linux.mk
+++ b/depends/hosts/linux.mk
@@ -1,5 +1,5 @@
linux_CFLAGS=-pipe -std=$(C_STANDARD)
-linux_CXXFLAGS=-pipe
+linux_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
ifneq ($(LTO),)
linux_CFLAGS += -flto
diff --git a/depends/hosts/mingw32.mk b/depends/hosts/mingw32.mk
index 24a25a2788..b98f9ab7ac 100644
--- a/depends/hosts/mingw32.mk
+++ b/depends/hosts/mingw32.mk
@@ -3,7 +3,7 @@ mingw32_CXX := $(host)-g++-posix
endif
mingw32_CFLAGS=-pipe -std=$(C_STANDARD)
-mingw32_CXXFLAGS=-pipe
+mingw32_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
ifneq ($(LTO),)
mingw32_CFLAGS += -flto
diff --git a/depends/hosts/netbsd.mk b/depends/hosts/netbsd.mk
index a0cf6b1057..8342dcc6ed 100644
--- a/depends/hosts/netbsd.mk
+++ b/depends/hosts/netbsd.mk
@@ -1,5 +1,5 @@
netbsd_CFLAGS=-pipe -std=$(C_STANDARD)
-netbsd_CXXFLAGS=-pipe
+netbsd_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
ifneq ($(LTO),)
netbsd_CFLAGS += -flto
diff --git a/depends/hosts/openbsd.mk b/depends/hosts/openbsd.mk
index 3578872693..d330e94d2e 100644
--- a/depends/hosts/openbsd.mk
+++ b/depends/hosts/openbsd.mk
@@ -1,5 +1,5 @@
openbsd_CFLAGS=-pipe -std=$(C_STANDARD)
-openbsd_CXXFLAGS=-pipe
+openbsd_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
ifneq ($(LTO),)
openbsd_CFLAGS += -flto