Created
October 6, 2010 20:21
-
-
Save benreesman/614004 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/wscript b/wscript | |
index 3a3df4d..5ec39a5 100644 | |
--- a/wscript | |
+++ b/wscript | |
@@ -28,12 +28,14 @@ def configure(conf): | |
conf.env.append_unique('CXXFLAGS', ["-Wall"]) | |
conf.env.append_unique('CXXFLAGS', Utils.cmd_output(Options.options.mysql_config + ' --include').split()) | |
+ | |
+ # link flags are needed to find the libraries | |
+ conf.env.append_unique('LINKFLAGS', Utils.cmd_output(Options.options.mysql_config + ' --libs_r').split()) | |
- if conf.check_cxx(lib="mysqlclient_r", errmsg="not found, try to find nonthreadsafe libmysqlclient"): | |
- conf.env.append_unique('LINKFLAGS', Utils.cmd_output(Options.options.mysql_config + ' --libs_r').split()) | |
- else: | |
+ if not conf.check_cxx(lib="mysqlclient_r", errmsg="not found, try to find nonthreadsafe libmysqlclient"): | |
+ conf.env.append_unique('LINKFLAGS', Utils.cmd_output(Options.options.mysql_config + ' --libs').split()) | |
+ | |
if conf.check_cxx(lib="mysqlclient"): | |
- conf.env.append_unique('LINKFLAGS', Utils.cmd_output(Options.options.mysql_config + ' --libs').split()) | |
conf.env.append_unique('CXXDEFINES', ["MYSQL_NON_THREADSAFE"]) | |
else: | |
conf.fatal("Missing both libmysqlclient_r and libmysqlclient from libmysqlclient-devel or mysql-devel package") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment