qt48: fix darwin build with clang-5
This commit is contained in:
parent
f8865b1181
commit
4c07aea8d8
13
pkgs/development/libraries/qt-4.x/4.8/clang-5-darwin.patch
Normal file
13
pkgs/development/libraries/qt-4.x/4.8/clang-5-darwin.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/src/gui/text/qfontengine_coretext.mm b/src/gui/text/qfontengine_coretext.mm
|
||||
index 204d685..e05179e 100644
|
||||
--- a/src/gui/text/qfontengine_coretext.mm
|
||||
+++ b/src/gui/text/qfontengine_coretext.mm
|
||||
@@ -886,7 +886,7 @@ void QCoreTextFontEngine::getUnscaledGlyph(glyph_t glyph, QPainterPath *path, gl
|
||||
|
||||
QFixed QCoreTextFontEngine::emSquareSize() const
|
||||
{
|
||||
- return QFixed::QFixed(int(CTFontGetUnitsPerEm(ctfont)));
|
||||
+ return QFixed(int(CTFontGetUnitsPerEm(ctfont)));
|
||||
}
|
||||
|
||||
QFontEngine *QCoreTextFontEngine::cloneWithSize(qreal pixelSize) const
|
@ -68,6 +68,7 @@ stdenv.mkDerivation rec {
|
||||
[ ./glib-2.32.patch
|
||||
./libressl.patch
|
||||
./parallel-configure.patch
|
||||
./clang-5-darwin.patch
|
||||
./qt-4.8.7-unixmake-darwin.patch
|
||||
(substituteAll {
|
||||
src = ./dlopen-absolute-paths.diff;
|
||||
|
Loading…
Reference in New Issue
Block a user