File blender-bmake.patch of Package blender

--- release/plugins/bmake
+++ release/plugins/bmake
@@ -60,10 +60,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";
@@ -125,9 +125,6 @@
 if ( test -n "$LIBM" ) then
 	LIBS="$LIBS -lm"; 
 fi
-if ( test -n "$LIBC" ) then 
-	LIBS="$LIBS -lc"; 
-fi
 
 echo "$CC $CFLAGS -c $CFILE $INCLUDES"
 $CC $CFLAGS -c $CFILE $INCLUDES
openSUSE Build Service is sponsored by