From 6cc9333fe87a389fa21671a6b225e8a7ac905dad Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Mon, 9 Aug 2021 13:11:53 +0000 Subject: [PATCH] automatically detect BSDs as platform=linuxbsd (cherry picked from commit 78cd0ffdba6a336475f21be598dca7087a4a66f7) --- SConstruct | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 8053eba57b2..65eed1e7622 100644 --- a/SConstruct +++ b/SConstruct @@ -195,7 +195,13 @@ elif env_base["p"] != "": selected_platform = env_base["p"] else: # Missing `platform` argument, try to detect platform automatically - if sys.platform.startswith("linux"): + if ( + sys.platform.startswith("linux") + or sys.platform.startswith("dragonfly") + or sys.platform.startswith("freebsd") + or sys.platform.startswith("netbsd") + or sys.platform.startswith("openbsd") + ): selected_platform = "x11" elif sys.platform == "darwin": selected_platform = "osx"