Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 130023 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +6 lines)
Line  Link Here
0
-- SConstruct
0
++ SConstruct
Lines 124-129 Link Here
124
124
125
else:
125
else:
126
	print "Compiling for Unix/Posix/Linux Environment"
126
	print "Compiling for Unix/Posix/Linux Environment"
127
	SConsignFile()
127
	env = Environment(ENV = os.environ)
128
	env = Environment(ENV = os.environ)
128
	env.Append(CPPPATH = ['/usr/include/SDL', '/usr/include/GL'])
129
	env.Append(CPPPATH = ['/usr/include/SDL', '/usr/include/GL'])
129
	libpath = ['/usr/X11R6/lib']
130
	libpath = ['/usr/X11R6/lib']
Lines 142-149 Link Here
142
		ccflags += ' -g -O3 -march=athlon-xp -march=athlon-xp -mfpmath=sse -mmmx -msse -m3dnow'
143
		ccflags += ' -g -O3 -march=athlon-xp -march=athlon-xp -mfpmath=sse -mmmx -msse -m3dnow'
143
	elif (debug == -2):	# special g++4.0+ auto vectorization
144
	elif (debug == -2):	# special g++4.0+ auto vectorization
144
		ccflags += ' -g -O3 -march=athlon-xp -march=athlon-xp -mfpmath=sse -mmmx -msse -m3dnow -ftree-vectorize -ftree-vectorizer-verbose=2'
145
		ccflags += ' -g -O3 -march=athlon-xp -march=athlon-xp -mfpmath=sse -mmmx -msse -m3dnow -ftree-vectorize -ftree-vectorizer-verbose=2'
145
	else:
146
		ccflags += ' -g -O2' # debug symbols will be stripped by the linker for a debian package
147
	if (useefence >= 1):
146
	if (useefence >= 1):
148
		extralibs += ['efence']
147
		extralibs += ['efence']
149
		print 'Linking to ElectricFence library!'
148
		print 'Linking to ElectricFence library!'
Lines 177-182 Link Here
177
		else:
176
		else:
178
			print 'Using x86 SSE/MMX optimizations.'
177
			print 'Using x86 SSE/MMX optimizations.'
179
	env.Append(CCFLAGS = ccflags)
178
	env.Append(CCFLAGS = ccflags)
179
	if os.environ.get('CXXFLAGS'):
180
		env.Append(CCFLAGS = os.environ['CXXFLAGS'])
181
	if os.environ.get('LDFLAGS'):
182
		env.Append(LINKFLAGS = os.environ['LDFLAGS'])
180
	datadir = installdatadir
183
	datadir = installdatadir
181
	build_dir = 'linux'
184
	build_dir = 'linux'
182
	# check for broken libGL, ignore undefined symbols then
185
	# check for broken libGL, ignore undefined symbols then

Return to bug 130023