diff -up blender-2.45/config/linux2-config.py.org blender-2.45/config/linux2-config.py
--- blender-2.45/config/linux2-config.py.org 2007-09-18 06:59:16.000000000 +0200
+++ blender-2.45/config/linux2-config.py 2008-12-27 12:36:44.000000000 +0100
@@ -137,6 +137,12 @@ CCFLAGS = ['-pipe','-fPIC','-funsigned-c
CPPFLAGS = ['-DXP_UNIX']
CXXFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing']
+
+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.45/SConstruct.org blender-2.45/SConstruct
--- blender-2.45/SConstruct.org 2007-09-18 06:59:24.000000000 +0200
+++ blender-2.45/SConstruct 2008-12-27 12:35:46.000000000 +0100
@@ -198,7 +198,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