diff SConstruct @ 410:efa51189ffc3

Move the LINKFLAGS to a more appropriate spot.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 31 Jan 2010 17:17:23 +0000
parents 47eca3c3d59d
children 90acb1d079c0
line wrap: on
line diff
--- a/SConstruct	Sun Jan 31 05:02:24 2010 +0000
+++ b/SConstruct	Sun Jan 31 17:17:23 2010 +0000
@@ -36,7 +36,6 @@
 			'Destination directory (prepended to prefix)',
 			None,
 			PathVariable.PathAccept ))
-#vars.Add('CXXFLAGS', "")
 
 #propagate the invoking users complete external environment
 env = Environment(variables = vars, 
@@ -252,7 +251,8 @@
 	else:	
 		env.AppendUnique(CXXFLAGS=['-O0', '-Wall', '-Wno-unused'])
 		
-	env.AppendUnique(CXXFLAGS=['-ggdb', '-D_DEBUG'])
+	env.AppendUnique(CXXFLAGS=['-g', '-D_DEBUG'])
+	env.AppendUnique(LINKFLAGS=['-Wl')
 	engine_var_dir = os.path.join('build','engine','debug')
 	tests_var_dir = os.path.join('build','tests','debug')
 	print "Building DEBUG binaries..."
@@ -262,6 +262,7 @@
 	else:	
 		env.AppendUnique(CXXFLAGS=['-O2', '-Wall', '-Wno-unused'])
 	
+	env.AppendUnique(LINKFLAGS=['-Wl'])
 	engine_var_dir = os.path.join('build','engine','release')
 	tests_var_dir = os.path.join('build','tests','release')
 	print "Building RELEASE binaries..."