From f53a595f885954b4afe3f9247ae5afcd3d1388de Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 14 Jun 2010 00:26:28 +0200 Subject: Fixed building and linking on Linux. --- SConstruct | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'SConstruct') 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']) -- cgit v1.2.3