From 78cd0ffdba6a336475f21be598dca7087a4a66f7 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 --- SConstruct | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index f8e3a68edd4..03a4726dd6b 100644 --- a/SConstruct +++ b/SConstruct @@ -196,7 +196,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 = "linuxbsd" elif sys.platform == "darwin": selected_platform = "osx"