LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File blender-bmake.patch of Package blender (Project graphics:rendering)

Index: release/plugins/bmake
===================================================================
--- release/plugins/bmake.orig
+++ release/plugins/bmake
@@ -57,10 +57,10 @@ elif ( test $UNAME = "OpenBSD" ) then
 	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";
@@ -122,9 +122,6 @@ LIBS=
 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