diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2005-02-13 23:05:47 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2005-02-13 23:05:47 -0500 |
commit | 538d7d19c8dd314ada10ffc0b465d75cb252bc55 (patch) | |
tree | 3ac9110ec566ea8cc0878cf96939e27a533815bc /SConscript | |
parent | 10ee909fbd895b588bf01021af98e81a3ae40fc0 (diff) | |
parent | 57482491c5eeb3e52f2f29f5f56040445004cb43 (diff) | |
download | gem5-538d7d19c8dd314ada10ffc0b465d75cb252bc55.tar.xz |
Merge
--HG--
extra : convert_revision : 10c28ac66c7e71615a239783e21ab36a47de992c
Diffstat (limited to 'SConscript')
-rw-r--r-- | SConscript | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/SConscript b/SConscript index 19f84f913..8f7899134 100644 --- a/SConscript +++ b/SConscript @@ -28,6 +28,7 @@ import os import sys +from os.path import isdir # This file defines how to build a particular configuration of M5 # based on variable settings in the 'env' build environment. @@ -336,18 +337,16 @@ else: extra_libraries = [] env.Append(LIBS=['z']) -if env['USE_MYSQL']: +if isdir('/usr/lib64/mysql') or isdir('/usr/lib/mysql') or \ + isdir('/usr/local/lib/mysql'): + env.Append(LIBPATH=['/usr/lib64/mysql', '/usr/local/lib/mysql/', + '/usr/lib/mysql']) + env.Append(CPPPATH=['/usr/local/include/mysql', '/usr/include/mysql']) sources += mysql_sources env.Append(CPPDEFINES = 'USE_MYSQL') env.Append(CPPDEFINES = 'STATS_BINNING') - env.Append(CPPPATH=['/usr/local/include/mysql', '/usr/include/mysql']) - if os.path.isdir('/usr/lib64'): - env.Append(LIBPATH=['/usr/lib64/mysql']) - else: - env.Append(LIBPATH=['/usr/lib/mysql/']) env.Append(LIBS=['mysqlclient']) - ################################################### # # Special build rules. |