File coolreader3-wx-3.0.50-link_fontconfig.patch of Package coolreader3-qt

Description: Directly link to libfontconfig.
Author: Kyrill Detinov <lazy.kent@opensuse.org>
Index: cr3wx/CMakeLists.txt
===================================================================
--- cr3wx/CMakeLists.txt.orig
+++ cr3wx/CMakeLists.txt
@@ -11,7 +11,7 @@ src/resources/cr3_def_cover.cpp
 LINK_DIRECTORIES(${wxWidgets_LIBRARY_DIRS})
 ADD_EXECUTABLE(cr3 ${CR3_SOURCES})
 SET (EXTRA_LIBS  ${wxWidgets_LIBRARIES} ${STD_LIBS})
-TARGET_LINK_LIBRARIES(cr3 crengine tinydict ${EXTRA_LIBS})
+TARGET_LINK_LIBRARIES(cr3 crengine tinydict ${EXTRA_LIBS} fontconfig)
 
 IF (UNIX)
   INSTALL( TARGETS cr3 RUNTIME DESTINATION bin )
openSUSE Build Service is sponsored by