From 8a859540c3cb306844288144a06028dc302408d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 23 Feb 2019 16:35:21 +0100 Subject: Use system libdir when searching for dynamically loaded libraries. This prevents finding an incorrect architecture on multi-arch systems. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- tdespell2/plugins/ispell/ispell_checker.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tdespell2/plugins/ispell/ispell_checker.cpp') diff --git a/tdespell2/plugins/ispell/ispell_checker.cpp b/tdespell2/plugins/ispell/ispell_checker.cpp index c07d9a55f..387997444 100644 --- a/tdespell2/plugins/ispell/ispell_checker.cpp +++ b/tdespell2/plugins/ispell/ispell_checker.cpp @@ -29,6 +29,8 @@ * do so, delete this exception statement from your version. */ +#include + #include #include #include @@ -53,7 +55,9 @@ typedef struct str_ispell_map } IspellMap; static const char *ispell_dirs [] = { + "/usr/" SYSTEM_LIBDIR "/ispell", "/usr/lib/ispell", + "/usr/local/" SYSTEM_LIBDIR "/ispell", "/usr/local/lib/ispell", "/usr/local/share/ispell", "/usr/share/ispell", -- cgit v1.2.1