summaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorjoshua stein <jcs@jcs.org>2020-01-01 20:06:14 -0600
committerAndreas Kling <awesomekling@gmail.com>2020-01-02 21:03:53 +0100
commit5e430e4eb4cc00bf7a7c4a047ef15e7bc737d32a (patch)
tree4d6c24f46efeec50d8e4857f0edd395884e4974c /Makefile.common
parentd61131945d15e64cdf7ab0a2cbe584a915599428 (diff)
downloadserenity-5e430e4eb4cc00bf7a7c4a047ef15e7bc737d32a.zip
Build: add support for building on OpenBSD
This requires gcc8 from ports to build the Toolchain.
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common
index 27c7afb4c4..44d4092a83 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -23,6 +23,11 @@ INCLUDE_FLAGS += \
VERBOSE = 0
ifneq ($(USE_HOST_CXX),)
+ UNAME_S := $(shell uname -s)
+ ifeq ($(UNAME_S),OpenBSD)
+ HOST_CXX ?= clang++
+ endif
+
ifeq '' '$(findstring clang++,$(CXX))'
C_WARNING_FLAGS += -Wno-unknown-warning-option
CXX_WARNING_FLAGS += -Wno-unknown-warning-option