[Libreoffice-commits] core.git: vcl/Executable_visualbackendtest.mk

Gleb Popov (via logerrit) logerrit at kemper.freedesktop.org
Sat Oct 17 10:58:23 UTC 2020


 vcl/Executable_visualbackendtest.mk |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 31373fa085b9985f315b10f008eca5e1a15cc6c7
Author:     Gleb Popov <6yearold at gmail.com>
AuthorDate: Fri Oct 16 16:27:18 2020 +0400
Commit:     Michael Stahl <michael.stahl at cib.de>
CommitDate: Sat Oct 17 12:57:46 2020 +0200

    Extend the conditional to *BSD systems to fix linking issue.
    
    While there, use DLOPEN_LIBS variable instead of "-ldl" constant.
    
    Change-Id: I5fb42b216afb6ea2a7b40fb1479c474c89e0706e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104432
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.stahl at cib.de>

diff --git a/vcl/Executable_visualbackendtest.mk b/vcl/Executable_visualbackendtest.mk
index 41c641a5ff14..c6c0d237018a 100644
--- a/vcl/Executable_visualbackendtest.mk
+++ b/vcl/Executable_visualbackendtest.mk
@@ -41,10 +41,10 @@ $(eval $(call gb_Executable_use_static_libraries,visualbackendtest,\
     vclmain \
 ))
 
-ifeq ($(OS),LINUX)
+ifneq (, $(filter LINUX %BSD, $(OS)))
 $(eval $(call gb_Executable_add_libs,visualbackendtest,\
 	-lm \
-	-ldl \
+	$(DLOPEN_LIBS) \
     -lX11 \
 ))
 


More information about the Libreoffice-commits mailing list