23d79f1
diff -up blender-2.48a/config/linux2-config.py.org blender-2.48a/config/linux2-config.py
23d79f1
--- blender-2.48a/config/linux2-config.py.org	2008-12-27 13:17:57.000000000 +0100
23d79f1
+++ blender-2.48a/config/linux2-config.py	2008-12-27 13:17:59.000000000 +0100
23d79f1
@@ -179,6 +179,12 @@ CCFLAGS = ['-pipe','-fPIC','-funsigned-c
23d79f1
 
23d79f1
 CPPFLAGS = ['-DXP_UNIX']
23d79f1
 CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
23d79f1
+
23d79f1
+import os
23d79f1
+RPM_OPT_FLAGS = os.environ['RPM_OPT_FLAGS'].split()
23d79f1
+CCFLAGS += RPM_OPT_FLAGS
23d79f1
+CXXFLAGS += RPM_OPT_FLAGS
23d79f1
+
23d79f1
 REL_CFLAGS = ['-O2']
23d79f1
 REL_CCFLAGS = ['-O2']
23d79f1
 ##BF_DEPEND = True
6c40009
diff -up blender-2.48a/extern/SConscript.org blender-2.48a/extern/SConscript
6c40009
--- blender-2.48a/extern/SConscript.org	2008-10-22 18:38:21.000000000 +0200
23d79f1
+++ blender-2.48a/extern/SConscript	2008-12-27 13:16:31.000000000 +0100
3d4680d
@@ -2,8 +2,6 @@
3d4680d
 
3d4680d
 Import('env')
3d4680d
 
3d4680d
-SConscript(['glew/SConscript'])
3d4680d
-
3d4680d
 if env['WITH_BF_GAMEENGINE']:
3d4680d
     SConscript(['qhull/SConscript',
3d4680d
             'solid/SConscript'])
6c40009
diff -up blender-2.48a/SConstruct.org blender-2.48a/SConstruct
6c40009
--- blender-2.48a/SConstruct.org	2008-10-22 18:38:43.000000000 +0200
23d79f1
+++ blender-2.48a/SConstruct	2008-12-27 13:16:31.000000000 +0100
23d79f1
@@ -217,7 +217,7 @@ if env['OURPLATFORM'] == 'linux2' :
3d4680d
 
3d4680d
         def CheckFreeAlut(context,env):
3d4680d
             context.Message( B.bc.OKGREEN + "Linux platform detected:\n  checking for FreeAlut... " + B.bc.ENDC )
3d4680d
-            env['LIBS'] = 'alut'
3d4680d
+            env['LIBS'] = ['alut', 'openal']
3d4680d
             result = context.TryLink(mylib_test_source_file, '.c')
3d4680d
             context.Result(result)
3d4680d
             return result