aboutsummarylogtreecommitdiffstats
path: root/0014-Fix-linking-against-shared-static-MariaDB.patch
blob: 3bfd5ad64fe1ad6dd83a1916da9f7a07a96fc3a8 (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 ea1df506321d35a9f8a648ea98642b034b7ace48 Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Sun, 18 Sep 2016 18:56:55 +0200
Subject: [PATCH 14/31] Fix linking against shared/static MariaDB

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
index 49444c7e5f..d162d7bc09 100644
--- a/src/sql/configure.json
+++ b/src/sql/configure.json
@@ -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" },
                 { "type": "mysqlConfig", "query": "--libs_r", "cleanlibs": true },
                 { "type": "mysqlConfig", "query": "--libs", "cleanlibs": true },
                 { "type": "mysqlConfig", "query": "--libs_r", "cleanlibs": false },
-- 
2.13.0