aboutsummarylogtreecommitdiffstats
path: root/0008-Fix-linking-against-shared-static-libpng.patch
blob: a5eef160e36bbfdbbcd5388539efaac22a42f2b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From e48d371cf5b0b98f91fca0fe38a5dd0479fcdfca Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Thu, 26 Jan 2017 17:51:31 +0100
Subject: [PATCH 08/34] Fix linking against shared/static libpng

Change-Id: Ic7a0ec9544059b8e647a5d0186f1b88c00911dcf
---
 src/gui/configure.json | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gui/configure.json b/src/gui/configure.json
index 0a591e110c..4ca919c6da 100644
--- a/src/gui/configure.json
+++ b/src/gui/configure.json
@@ -296,7 +296,8 @@
             "sources": [
                 { "type": "pkgConfig", "args": "libpng" },
                 { "libs": "-llibpng", "condition": "config.msvc" },
-                { "libs": "-lpng", "condition": "!config.msvc" }
+                { "libs": "-lpng -lz", "condition": "!config.msvc && !features.shared" },
+                { "libs": "-lpng", "condition": "!config.msvc && features.shared" }
             ],
             "use": [
                 { "lib": "zlib", "condition": "features.system-zlib" }
-- 
2.15.1