diff --git a/SConstruct b/SConstruct index 6167340aa5e..ca4ee910bb5 100644 --- a/SConstruct +++ b/SConstruct @@ -198,7 +198,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"