summaryrefslogtreecommitdiff
path: root/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'SConscript')
-rw-r--r--SConscript10
1 files changed, 6 insertions, 4 deletions
diff --git a/SConscript b/SConscript
index 6949d9548..4ef66dec3 100644
--- a/SConscript
+++ b/SConscript
@@ -383,13 +383,15 @@ extra_libraries = []
if env['USE_MYSQL']:
sources += mysql_sources
env.Append(CPPDEFINES = 'USE_MYSQL')
+ env.Append(CPPDEFINES = 'STATS_BINNING')
env.Append(CPPPATH=['/usr/local/include/mysql', '/usr/include/mysql'])
env.Append(LIBS=['z'])
- if sys.platform.lower().startswith('linux'):
- extra_libraries.append('/usr/lib/mysql/libmysqlclient.a')
+ if os.path.isdir('/usr/lib64'):
+ env.Append(LIBPATH=['/usr/lib64/mysql'])
else:
- env.Append(LIBS=['mysql'])
- env.Append(LIBPATH=['/usr/local/lib/mysql/'])
+ env.Append(LIBPATH=['/usr/lib/mysql/'])
+ env.Append(LIBS=['mysqlclient'])
+
###################################################
#