2018-03-17 17:08:22 +01:00
|
|
|
From 0135efd090f0aa0402443a948f7de49adb837125 Mon Sep 17 00:00:00 2001
|
2017-01-23 21:37:13 +01:00
|
|
|
From: Martchus <martchus@gmx.net>
|
|
|
|
Date: Sun, 18 Sep 2016 18:58:25 +0200
|
2018-02-15 00:14:36 +01:00
|
|
|
Subject: [PATCH 15/32] Fix linking against shared/static PostgreSQL
|
2017-01-23 21:37:13 +01:00
|
|
|
|
|
|
|
---
|
2017-06-30 22:27:38 +02:00
|
|
|
src/plugins/sqldrivers/configure.json | 5 +++--
|
2017-01-23 21:37:13 +01:00
|
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
|
2017-06-30 22:27:38 +02:00
|
|
|
diff --git a/src/plugins/sqldrivers/configure.json b/src/plugins/sqldrivers/configure.json
|
2017-10-13 21:29:48 +02:00
|
|
|
index 4619db4a54..ef0d45f6cc 100644
|
2017-06-30 22:27:38 +02:00
|
|
|
--- a/src/plugins/sqldrivers/configure.json
|
|
|
|
+++ b/src/plugins/sqldrivers/configure.json
|
2017-10-13 21:29:48 +02:00
|
|
|
@@ -91,9 +91,10 @@
|
|
|
|
]
|
|
|
|
},
|
2017-01-23 21:37:13 +01:00
|
|
|
"sources": [
|
|
|
|
- { "type": "pkgConfig", "args": "libpq" },
|
|
|
|
{ "type": "psqlConfig" },
|
|
|
|
- { "type": "psqlEnv", "libs": "-llibpq -lws2_32 -ladvapi32", "condition": "config.win32" },
|
|
|
|
+ { "type": "psqlEnv", "libs": "-lpq -lintl -lssl -lcrypto -lshell32 -lws2_32 -lsecur32", "condition": "config.win32 && !features.shared" },
|
|
|
|
+ { "type": "psqlEnv", "libs": "-Wl,-Bdynamic -lpq -Wl,-Bstatic", "condition": "config.win32 && !features.shared" },
|
|
|
|
+ { "type": "psqlEnv", "libs": "-lpq", "condition": "config.win32 && features.shared" },
|
|
|
|
{ "type": "psqlEnv", "libs": "-lpq", "condition": "!config.win32" }
|
|
|
|
]
|
|
|
|
},
|
|
|
|
--
|
2018-03-17 17:08:22 +01:00
|
|
|
2.16.2
|
2017-01-23 21:37:13 +01:00
|
|
|
|