From 990d62ca942913dfe87009cc6d5ab7b81cf4c710 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Thu, 8 Mar 2018 14:29:24 +0100 Subject: [PATCH] tigervnc: Add libraries from fltl-config There is some logic in CMakeLists.txt to create the list of required link libraries in FLTK_LIBRARIES. This depends on the output of FindFLTK.cmake provided by cmake. The logic seems to fail as several libraries are missing in the end: [ 89%] Linking CXX executable vncviewer /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib64/libfltk.a(Fl_Window_shape.o): undefined reference to symbol 'dlsym@@GLIBC_2.2.5' /lib/libdl.so.2: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status vncviewer/CMakeFiles/vncviewer.dir/build.make:427: recipe for target 'vncviewer/vncviewer' failed make[2]: *** [vncviewer/vncviewer] Error 1 Overwrite the computed FLTK_LIBRARIES with the output of fltk-config --use-images --ldflags which seems to enumerate the required libraries. --- tigervnc.be0 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tigervnc.be0 b/tigervnc.be0 index 1d6b412a9..b1f64f9eb 100755 --- a/tigervnc.be0 +++ b/tigervnc.be0 @@ -53,9 +53,9 @@ SRCURL[0]="https://github.com/TigerVNC/tigervnc/archive/v${PKGVERSION}/tigervnc- # bee_patch "${@}" #} -#mee_configure() { -# bee_configure -#} +mee_configure() { + bee_configure -DFLTK_LIBRARIES="$(fltk-config --use-images --ldflags)" +} #mee_build() { # bee_build