* Adapt hacks to new config system * Use distinct mkspec mingw-w64-g++ rather than patching the existing win32-g++ * Testing QML and ANGLE is on TODO list because it hasn't been tested since quite a time
31 lines
1.3 KiB
Diff
31 lines
1.3 KiB
Diff
From 24c3bda7db1733545350436d8c2f489be5395650 Mon Sep 17 00:00:00 2001
|
|
From: Martchus <martchus@gmx.net>
|
|
Date: Fri, 3 Feb 2017 20:51:19 +0100
|
|
Subject: [PATCH 10/30] Fix linking against static freetype2
|
|
|
|
---
|
|
src/gui/configure.json | 7 +++++--
|
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/gui/configure.json b/src/gui/configure.json
|
|
index 5006ff5a3a..6530357be9 100644
|
|
--- a/src/gui/configure.json
|
|
+++ b/src/gui/configure.json
|
|
@@ -99,8 +99,11 @@
|
|
"label": "FreeType",
|
|
"test": "unix/freetype",
|
|
"sources": [
|
|
- { "type": "pkgConfig", "args": "freetype2" },
|
|
- { "type": "freetype", "libs": "-lfreetype" }
|
|
+ { "type": "pkgConfig", "args": "--static --libs freetype2", "condition": "!features.shared" },
|
|
+ { "type": "pkgConfig", "args": "--libs freetype2", "condition": "features.shared" },
|
|
+ { "libs": "-lfreetype -lharfbuzz -lfreetype -lglib-2.0 -lintl -lws2_32 -lole32 -lwinmm -lshlwapi -lpcre -lintl -lpcre -lintl -liconv -lgraphite2 -lbz2", "condition": "!features.shared" },
|
|
+ { "libs": "-Wl,-Bdynamic -lfreetype -Wl,-Bstatic", "condition": "!features.shared" },
|
|
+ { "libs": "-lfreetype", "condition": "features.shared" }
|
|
]
|
|
},
|
|
"fontconfig": {
|
|
--
|
|
2.11.1
|
|
|