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

37 lines
766 B
Diff

From 35a5986a51c6949754355e0929ce81039abba506 Mon Sep 17 00:00:00 2001
From: hannes <hannes@fedoraproject.org>
Date: Tue, 12 Jan 2016 22:43:19 +0100
Subject: [PATCH] hunspell patch
---
texstudio.pro | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/texstudio.pro b/texstudio.pro
index d15e2b2..18031c2 100644
--- a/texstudio.pro
+++ b/texstudio.pro
@@ -471,7 +471,7 @@ unix {
}
DEFINES += HUNSPELL_STATIC
-include(hunspell/hunspell.pri)
+include(hunspell.pri)
include(qcodeedit/qcodeedit.pri)
@@ -589,3 +589,10 @@ else {
QMAKE_LFLAGS -= -Wl,-s
QMAKE_LFLAGS_RELEASE -= -Wl,-s
}
+# enable use of pkgconfig
+unix {
+ CONFIG += link_pkgconfig
+ # use system hunspell
+ PKGCONFIG += hunspell
+}
+
--
2.5.0