--- shotwell-0.12.0/Makefile.orig 2012-03-27 22:59:45.000000000 +0200 +++ shotwell-0.12.0/Makefile 2012-03-28 09:23:30.000000000 +0200 @@ -424,8 +424,8 @@ CFLAGS = -O0 -g -pipe PLUGIN_CFLAGS = -O0 -g -pipe else -CFLAGS = -O2 -g -pipe -PLUGIN_CFLAGS = -O2 -g -pipe +CFLAGS = $(RPMCFLAGS) +PLUGIN_CFLAGS = $(RPMCFLAGS) endif endif