texstudio/texstudio-use-system-hunspe...

38 lines
771 B
Diff

From 755d3ac64401a27b01258fd488b435b30fc53cb1 Mon Sep 17 00:00:00 2001
From: hannes <hannes@fedoraproject.org>
Date: Fri, 11 Sep 2015 07:23:30 +0200
Subject: [PATCH] hunspell-patch
---
texstudio.pro | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/texstudio.pro b/texstudio.pro
index 66f99e9..f375e7e 100644
--- a/texstudio.pro
+++ b/texstudio.pro
@@ -480,7 +480,7 @@ unix {
}
DEFINES += HUNSPELL_STATIC
-include(hunspell/hunspell.pri)
+include(hunspell.pri)
include(qcodeedit/qcodeedit.pri)
@@ -665,6 +665,11 @@ else {
QMAKE_LFLAGS -= -Wl,-s
QMAKE_LFLAGS_RELEASE -= -Wl,-s
}
-
+# enable use of pkgconfig
+unix {
+ CONFIG += link_pkgconfig
+ # use system hunspell
+ PKGCONFIG += hunspell
+}
--
2.4.3