diff -up blender-2.49b/config/linux2-config.py.org blender-2.49b/config/linux2-config.py
--- blender-2.49b/config/linux2-config.py.org 2009-09-01 17:23:25.000000000 +0200
+++ blender-2.49b/config/linux2-config.py 2010-05-19 20:08:30.599484197 +0200
@@ -177,10 +177,16 @@ CXX = 'g++'
##ifeq ($CPU),alpha)
## CFLAGS += -pipe -fPIC -funsigned-char -fno-strict-aliasing -mieee
-CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
+CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64']
CPPFLAGS = ['-DXP_UNIX']
-CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
+CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64']
+
+import os
+RPM_OPT_FLAGS = os.environ['RPM_OPT_FLAGS'].split()
+CCFLAGS += RPM_OPT_FLAGS
+CXXFLAGS += RPM_OPT_FLAGS
+
REL_CFLAGS = ['-O2']
REL_CCFLAGS = ['-O2']
##BF_DEPEND = True
diff -up blender-2.49b/extern/SConscript.org blender-2.49b/extern/SConscript
--- blender-2.49b/extern/SConscript.org 2009-09-01 17:23:25.000000000 +0200
+++ blender-2.49b/extern/SConscript 2010-05-19 20:01:52.052609611 +0200
@@ -2,8 +2,6 @@
Import('env')
-SConscript(['glew/SConscript'])
-
if env['WITH_BF_GAMEENGINE']:
if env['WITH_BF_SOLID']:
SConscript(['qhull/SConscript', 'solid/SConscript'])
diff -up blender-2.49b/SConstruct.org blender-2.49b/SConstruct
--- blender-2.49b/SConstruct.org 2009-09-01 17:23:49.000000000 +0200
+++ blender-2.49b/SConstruct 2010-05-19 20:01:52.053609534 +0200
@@ -223,7 +223,7 @@ if env['OURPLATFORM'] == 'linux2' :
def CheckFreeAlut(context,env):
context.Message( B.bc.OKGREEN + "Linux platform detected:\n checking for FreeAlut... " + B.bc.ENDC )
- env['LIBS'] = 'alut'
+ env['LIBS'] = 'alut, openal'
result = context.TryLink(mylib_test_source_file, '.c')
context.Result(result)
return result