Fixed CI build

In CI build, dependencies are put in the build install location rather than
in the system libs directory, hence that path must be included in the
search for shared libraries.

The problem seems to have been triggered by recent change in the
libkiwix.pc pkg-config file which resulted in the version of some
of libkiwix dependencies (recorded in libkiwix.so) being bumped up.
As a result, previous/older versions of those dependencies embedded in
the CI build docker image
(ghcr.io/kiwix/kiwix-build_ci_focal:2024-06-03) no longer matched the
requirements of libkiwix.so, whereas the up-to-date versions of those
dependencies (that are downloaded during each build procedure) were not
used because they were not in the search path.
This commit is contained in:
Veloman Yunkan 2024-09-23 17:34:34 +04:00
parent 268363f2fd
commit 482e4c6dfd

View File

@ -25,6 +25,10 @@ QMAKE_LFLAGS += -std=c++17
QMAKE_CXXFLAGS += -Werror QMAKE_CXXFLAGS += -Werror
} }
!win32:!static {
QMAKE_LFLAGS += -Wl,-rpath-link,\'$$PREFIX/lib/x86_64-linux-gnu\'
}
# Also change resources/org.kiwix.desktop.appdata.xml # Also change resources/org.kiwix.desktop.appdata.xml
DEFINES += VERSION="2.3.1" DEFINES += VERSION="2.3.1"