summaryrefslogtreecommitdiff
blob: 83fe4abbb77f881bafb2fb4c65329f0bec593254 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- SConstruct.old
+++ SConstruct
@@ -141,6 +141,7 @@
         LINKFLAGS = ['-pthread'],
         CC = 'gcc', CXX = 'g++',
         options = opts)
+    env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS'])
     check_headers = ['asio.hpp', 'boost/bind.hpp', 'GL/gl.h', 'GL/glu.h', 'SDL/SDL.h', 'SDL/SDL_image.h', 'SDL/SDL_rotozoom.h', 'vorbis/vorbisfile.h', 'GL/glew.h']
 
 
--- src/SConscript.old	2014-05-15 13:04:09.333866475 +0200
+++ src/SConscript	2014-05-15 13:04:23.699608229 +0200
@@ -182,7 +182,7 @@
 #--------------------------#
 appdir = ""
 vdrift_install = None
-common_libs = ['SDL_image', 'SDL_gfx', 'vorbisfile', 'vdriftbullet']
+common_libs = ['SDL_image', 'SDL_gfx', 'vorbisfile', 'vdriftbullet', '-lGL']
 
 if (sys.platform == 'freebsd6') or (sys.platform == 'freebsd7') or (sys.platform == 'freebsd8'):
     common_libs.append('libbulletcollision')