diff options
author | Richard PALO <richard@NetBSD.org> | 2015-09-15 15:58:51 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2015-10-20 15:17:58 +0000 |
commit | fd612a144c0028972513a18167a13d29326a1798 (patch) | |
tree | 66208cb56cc22e7d7b942f029a46f3213bb3a1a2 /vcl/Library_desktop_detector.mk | |
parent | d42c3e0ddd9078c00de591b7470d73ad8a186cb1 (diff) |
Add DLOPEN_LIBS to configure for some cases where -ldl is needed
use std::sqrt in vcldemo.cxx
Change-Id: I24d8ba15ee267d0cad3b063df9b7cfd8d284f4ee
Reviewed-on: https://gerrit.libreoffice.org/18591
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'vcl/Library_desktop_detector.mk')
-rw-r--r-- | vcl/Library_desktop_detector.mk | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/Library_desktop_detector.mk b/vcl/Library_desktop_detector.mk index 6baf4abcb346..3edd0015e243 100644 --- a/vcl/Library_desktop_detector.mk +++ b/vcl/Library_desktop_detector.mk @@ -63,10 +63,9 @@ $(eval $(call gb_Library_add_exception_objects,desktop_detector,\ vcl/unx/generic/desktopdetect/desktopdetector \ )) -ifeq ($(OS),LINUX) +ifeq ($(OS), $(filter LINUX %BSD SOLARIS, $(OS))) $(eval $(call gb_Library_add_libs,desktop_detector,\ - -lm \ - -ldl \ + -lm $(DLOPEN_LIBS) \ -lpthread \ )) endif |