PKGBUILDs/qt5-base/mingw-w64-static/0014-Fix-linking-against-sh...

28 lines
1.2 KiB
Diff
Raw Normal View History

2017-06-02 18:20:04 +02:00
From ea1df506321d35a9f8a648ea98642b034b7ace48 Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Sun, 18 Sep 2016 18:56:55 +0200
2017-06-02 18:20:04 +02:00
Subject: [PATCH 14/31] Fix linking against shared/static MariaDB
2017-06-02 18:20:04 +02:00
Change-Id: I9722c154d845f288a2d4d1ab14a014066b28819b
---
src/sql/configure.json | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/sql/configure.json b/src/sql/configure.json
2017-06-02 18:20:04 +02:00
index 49444c7e5f..d162d7bc09 100644
--- a/src/sql/configure.json
+++ b/src/sql/configure.json
2017-06-02 18:20:04 +02:00
@@ -57,6 +57,9 @@
"label": "MySQL",
"test": "unix/mysql",
"sources": [
+ { "libs": "-lmariadbclient -lssl -lcrypto -lgdi32 -lws2_32 -lpthread -lz -lm", "condition": "config.win32 && !features.shared" },
+ { "libs": "-Wl,-Bdynamic -lmariadb -Wl,-Bstatic", "condition": "config.win32 && !features.shared" },
+ { "libs": "-lmariadb", "condition": "config.win32 && features.shared" },
2017-06-02 18:20:04 +02:00
{ "type": "mysqlConfig", "query": "--libs_r", "cleanlibs": true },
{ "type": "mysqlConfig", "query": "--libs", "cleanlibs": true },
{ "type": "mysqlConfig", "query": "--libs_r", "cleanlibs": false },
--
2017-06-02 18:20:04 +02:00
2.13.0