File gimp-fourier-0.4.1-makefile.patch of Package gimp-fourier

Description: Fix Makefile options.
Author: Kyrill Detinov <lazy.kent@opensuse.org>
Index: Makefile
===================================================================
--- Makefile.orig
+++ Makefile
@@ -4,7 +4,7 @@ PLUGIN_BUILD=$(GIMPTOOL) --build
 PLUGIN_INSTALL=$(GIMPTOOL) --install-bin
 GCC=g++
 LIBS=$(shell pkg-config fftw3 gimp-2.0 --libs)
-CFLAGS=-O2 $(shell pkg-config fftw3 gimp-2.0 --cflags)
+CFLAGS=$(shell pkg-config fftw3 gimp-2.0 --cflags)
 VERSION=0.4.1
 DIR=fourier-$(VERSION)
 
@@ -22,7 +22,7 @@ all: fourier
 
 # Use of pkg-config is the recommended way
 fourier: fourier.c
-	$(GCC) $(CFLAGS) $(LIBS) -o fourier fourier.c  
+	$(GCC) $(CXXFLAGS) $(CFLAGS) -o fourier fourier.c $(LIBS)
 
 # To avoid gimptool use, just copy the fourier in the directory you want
 install: fourier
openSUSE Build Service is sponsored by