diff options
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/Library_sofficeapp.mk | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/desktop/Library_sofficeapp.mk b/desktop/Library_sofficeapp.mk index df5cfb457150..1b8c5f7c214d 100644 --- a/desktop/Library_sofficeapp.mk +++ b/desktop/Library_sofficeapp.mk @@ -17,8 +17,8 @@ $(eval $(call gb_Library_set_include,sofficeapp,\ )) $(eval $(call gb_Library_add_libs,sofficeapp,\ - $(if $(filter $(OS),LINUX), \ - -ldl \ + $(if $(filter LINUX %BSD SOLARIS, $(OS)), \ + $(DLOPEN_LIBS) \ -lpthread \ ) \ )) @@ -99,19 +99,17 @@ $(eval $(call gb_Library_add_exception_objects,sofficeapp,\ ifeq ($(ENABLE_HEADLESS),TRUE) $(eval $(call gb_Library_add_libs,sofficeapp,\ - -lm \ - -ldl \ + -lm $(DLOPEN_LIBS) \ -lpthread \ )) else -ifeq ($(OS),LINUX) +ifeq ($(OS), $(filter LINUX %BSD SOLARIS, $(OS))) $(eval $(call gb_Library_use_static_libraries,sofficeapp,\ glxtest \ )) $(eval $(call gb_Library_add_libs,sofficeapp,\ - -lm \ - -ldl \ + -lm $(DLOPEN_LIBS) \ -lpthread \ -lGL \ -lX11 \ |