summaryrefslogtreecommitdiff
path: root/SConscript
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2004-09-16 15:11:38 -0400
committerAli Saidi <saidi@eecs.umich.edu>2004-09-16 15:11:38 -0400
commit9adb64ec70047d7f8709399f67c74402753f6579 (patch)
treeef0777e1aa914067d875f40d7516184538f73929 /SConscript
parenta71541a3e81067ebb1b974a2d74c951dc7fcb628 (diff)
downloadgem5-9adb64ec70047d7f8709399f67c74402753f6579.tar.xz
pc event now clears lower 2 bits
always build with dynamic libraries for mysqlclient SConscript: always use dynamic library now cpu/pc_event.hh: cleared lower 2 bits, since everything must be 4byte aligned --HG-- extra : convert_revision : 332ecd25a598e6a46a79bd653449aa7eb22a580a
Diffstat (limited to 'SConscript')
-rw-r--r--SConscript9
1 files changed, 5 insertions, 4 deletions
diff --git a/SConscript b/SConscript
index ddd16564b..310a7dd90 100644
--- a/SConscript
+++ b/SConscript
@@ -384,11 +384,12 @@ if env['USE_MYSQL']:
env.Append(CPPDEFINES = 'USE_MYSQL')
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'])
+
###################################################
#