File blender-2.48-bmake.patch of Package blender
diff -uNr old-blender-2.48/release/plugins/bmake blender-2.48/release/plugins/bmake
--- release/plugins/bmake 2008-10-14 19:43:45.000000000 +0200
+++ release/plugins/bmake 2008-10-15 10:41:08.000000000 +0200
@@ -57,10 +57,10 @@
LDFLAGS="-Bshareable";
elif ( test $UNAME = "Linux" ) then
CC="gcc";
- CFLAGS="-fPIC -funsigned-char -O2";
+ CFLAGS="-fPIC -funsigned-char -O2 ${RPM_OPT_FLAGS}";
- LD="ld";
- LDFLAGS="-Bshareable";
+ LD="gcc";
+ LDFLAGS="-shared";
elif ( test $UNAME = "SunOS" ) then
CC="cc";
CFLAGS="-O";
@@ -120,10 +120,7 @@
LIBS=
if ( test -n "$LIBM" ) then
- LIBS="$LIBS -lm";
-fi
-if ( test -n "$LIBC" ) then
- LIBS="$LIBS -lc";
+ LIBS="$LIBS -lm";
fi
echo "$CC $CFLAGS -c $CFILE $INCLUDES"