aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-11-30 02:57:30 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-11-30 02:57:30 +0300
commitc8285c9ff7bac60871cd8d58ebe0208ae29389bd (patch)
treee796b3e1621c93c968c63c0cf23e4c06bbff3e49
parenteb4e3f30d1e5a029273ad4086b79000ae9d96c8f (diff)
Fix mysql/buildfile to pass .def file for shared library linking only
-rw-r--r--mysql/buildfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/mysql/buildfile b/mysql/buildfile
index 3983e79..1878b69 100644
--- a/mysql/buildfile
+++ b/mysql/buildfile
@@ -228,7 +228,9 @@ if ($tclass != 'windows')
else
{
cc.libs += advapi32.lib
- cc.loptions += "/DEF:$src_base/libmysql/libmysql_exports_win32.def"
+
+ libs{mysqlclient}: \
+ cc.libs =+ "/DEF:$src_base/libmysql/libmysql_exports_win32.def"
}
# The library clients must include the API header as <mysql/mysql.h>.