File webp-fix-linking-error-with-system-library.patch of Package libqt5-qtimageformats

From a71771a1d7ac6b83e4ddd4163e9797f440f2f3fb Mon Sep 17 00:00:00 2001
From: Eirik Aavitsland <eirik.aavitsland@theqtcompany.com>
Date: Fri, 11 Mar 2016 11:41:14 +0100
Subject: webp: fix linking error with system library

If using system libwebp, we now need to link with webpdemux too. That
was added to the config test, but not the plugin itself.

Change-Id: Ib386632570c389dfd2429de6e9f7de29d04ac472
Reviewed-by: Dayang Shen <Archangel.SDY@gmail.com>
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
---
 src/plugins/imageformats/webp/webp.pro | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/imageformats/webp/webp.pro b/src/plugins/imageformats/webp/webp.pro
index 515bc3e..405c3b7 100644
--- a/src/plugins/imageformats/webp/webp.pro
+++ b/src/plugins/imageformats/webp/webp.pro
@@ -5,8 +5,8 @@ SOURCES += main.cpp qwebphandler.cpp
 OTHER_FILES += webp.json
 
 config_libwebp {
-    unix|win32-g++*: LIBS += -lwebp
-    else:win32: LIBS += libwebp.lib
+    unix|win32-g++*: LIBS += -lwebp -lwebpdemux
+    else:win32: LIBS += libwebp.lib libwebpdemux.lib
 } else {
     include($$PWD/../../../3rdparty/libwebp.pri)
 }
-- 
cgit v1.0-4-g1e03
openSUSE Build Service is sponsored by