MINGW-packages/mingw-w64-qt5-static/0014-qtimageformats-use-system-libs.patch
Raed Rizqie 45cd411474 qt5-static: update to 5.15.14
- simplified PKGBUILD recipe
- build in silent mode
- make sure we link with static zlib and zstd
- fix qmltyperegistrar 'Cannot open foreign types file' error
- fix race condition when building qtactiveqt tools
- fix *.pc & *.prl files further by removing full path to libs
2024-07-11 21:02:38 +08:00

27 lines
1.2 KiB
Diff

--- a/qtimageformats/src/imageformats/configure.json
+++ b/qtimageformats/src/imageformats/configure.json
@@ -84,8 +84,9 @@
]
},
"sources": [
- { "type": "pkgConfig", "args": "libtiff-4" },
- { "libs": "-ltiff" }
+ { "type": "pkgConfig", "args": "libtiff-4", "condition": "features.shared" },
+ { "type": "pkgConfig", "args": "--static --libs libtiff-4", "condition": "!features.shared" },
+ { "libs": "-ltiff", "condition": "features.shared" }
]
},
"webp": {
@@ -115,8 +116,9 @@
]
},
"sources": [
- { "type": "pkgConfig", "args": "libwebp libwebpmux libwebpdemux" },
- { "libs": "-lwebp -lwebpdemux -lwebpmux" }
+ { "type": "pkgConfig", "args": "libwebp libwebpmux libwebpdemux", "condition": "features.shared" },
+ { "libs": "-lwebp -lwebpdemux -lwebpmux", "condition": "features.shared" },
+ { "libs": "-lwebpdemux -lwebpmux -lwebp -lsharpyuv", "condition": "!features.shared" }
]
}
},