summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-06-14 00:26:28 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-06-14 00:26:28 +0200
commitf53a595f885954b4afe3f9247ae5afcd3d1388de (patch)
tree35d582ee113aaac31a8be27b6be0622693ca16ea
parent6f565ce1110d7f53defe3895255a456fd8adcd4f (diff)
Fixed building and linking on Linux.
-rw-r--r--SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index d50e840..3790557 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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'])