8fc5925
diff -up blender-2.45/config/linux2-config.py.org blender-2.45/config/linux2-config.py
8fc5925
--- blender-2.45/config/linux2-config.py.org	2007-09-18 06:59:16.000000000 +0200
8fc5925
+++ blender-2.45/config/linux2-config.py	2008-12-27 12:36:44.000000000 +0100
8fc5925
@@ -137,6 +137,12 @@ CCFLAGS = ['-pipe','-fPIC','-funsigned-c
8e9844a
 
8fc5925
 CPPFLAGS = ['-DXP_UNIX']
8fc5925
 CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
db304f4
+
8fc5925
+import os
8fc5925
+RPM_OPT_FLAGS = os.environ['RPM_OPT_FLAGS'].split()
8fc5925
+CCFLAGS += RPM_OPT_FLAGS
8fc5925
+CXXFLAGS += RPM_OPT_FLAGS
8fc5925
+
8fc5925
 REL_CFLAGS = ['-O2']
8fc5925
 REL_CCFLAGS = ['-O2']
8fc5925
 ##BF_DEPEND = 'true'
8fc5925
diff -up blender-2.45/SConstruct.org blender-2.45/SConstruct
8fc5925
--- blender-2.45/SConstruct.org	2007-09-18 06:59:24.000000000 +0200
8fc5925
+++ blender-2.45/SConstruct	2008-12-27 12:35:46.000000000 +0100
8fc5925
@@ -198,7 +198,7 @@ if env['OURPLATFORM'] == 'linux2' :
7beb5fa
 
7beb5fa
         def CheckFreeAlut(context,env):
7beb5fa
             context.Message( B.bc.OKGREEN + "Linux platform detected:\n  checking for FreeAlut... " + B.bc.ENDC )
7beb5fa
-            env['LIBS'] = 'alut'
7beb5fa
+            env['LIBS'] = ['alut', 'openal']
7beb5fa
             result = context.TryLink(mylib_test_source_file, '.c')
7beb5fa
             context.Result(result)
7beb5fa
             return result