From 96c1ae1d8e78ae8b9bd7d4001645cad24d62b720 Mon Sep 17 00:00:00 2001 From: Oliver Specht Date: Wed, 23 Mar 2016 13:40:13 +0100 Subject: fix headless build disables OpenGL and glew usage, lets --without-gui do what --without-x did before and disables X related test Change-Id: I680b47c9962a0d43c8ece593db0b82e347ceebdb Reviewed-on: https://gerrit.libreoffice.org/23474 Tested-by: Jenkins Reviewed-by: Oliver Specht --- desktop/source/app/sofficemain.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'desktop/source/app/sofficemain.cxx') diff --git a/desktop/source/app/sofficemain.cxx b/desktop/source/app/sofficemain.cxx index 21f1e0c93169..f850cff97dd6 100644 --- a/desktop/source/app/sofficemain.cxx +++ b/desktop/source/app/sofficemain.cxx @@ -95,7 +95,10 @@ extern "C" int DESKTOP_DLLPUBLIC soffice_main() /* Run test for OpenGL support in own process to avoid crash with broken * OpenGL drivers. Start process as early as possible. */ - bool bSuccess = fire_glxtest_process(); + bool bSuccess = false; +#if HAVE_FEATURE_OPENGL + bSuccess = fire_glxtest_process(); +#endif SAL_WARN_IF(!bSuccess, "desktop.opengl", "problems with glxtest"); #endif -- cgit