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

Change-Id: I775c3f0d7f4677efabd3d7c8c30d4d0ca182fc64
---
 src/plugins/sqldrivers/configure.json | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/plugins/sqldrivers/configure.json b/src/plugins/sqldrivers/configure.json
index 28ccbeadcde..cfff531cf93 100644
--- a/src/plugins/sqldrivers/configure.json
+++ b/src/plugins/sqldrivers/configure.json
@@ -67,6 +67,8 @@
             },
             "headers": "mysql.h",
             "sources": [
+                { "libs": "-lmariadbclient -lzstd -lws2_32 -ladvapi32 -lkernel32 -lshlwapi -lbcrypt -lcrypt32 -lsecur32 -lgdi32 -lpthread -lz -lm", "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.46.0