diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-06-14 00:26:28 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-06-14 00:26:28 +0200 |
commit | f53a595f885954b4afe3f9247ae5afcd3d1388de (patch) | |
tree | 35d582ee113aaac31a8be27b6be0622693ca16ea | |
parent | 6f565ce1110d7f53defe3895255a456fd8adcd4f (diff) |
Fixed building and linking on Linux.
-rw-r--r-- | SConstruct | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -17,6 +17,7 @@ if env['PLATFORM'] == 'darwin': env.Append(LIBPATH = ['/opt/local/lib']) env.Append(FRAMEWORKS = ['SDL', 'SDL_image', 'Cocoa', 'OpenGL', 'AppKit']) else: + env.Append(CPPPATH = ['.']) env.Append(LIBS = ['GL', 'GLU', 'SDL', 'SDL_image']) env.ParseConfig('sdl-config --cflags --libs') env.ParseConfig('pkg-config --cflags --libs ftgl') @@ -35,7 +36,7 @@ env.Append(LIBS = ['wriggle']) env.Append(LIBPATH = ['wriggle']) env.Library('engine/engine', engine) -env.Append(LIBS = ['engine']) +env.Prepend(LIBS = ['engine']) env.Append(LIBPATH = ['engine']) env.Program('foo', ['main.cpp']) |