File gimp-dds-fix-linker.patch of Package gimp-dds

diff -Naur a/Makefile b/Makefile
--- a/Makefile	2012-04-14 10:41:07.499731273 -0500
+++ b/Makefile	2012-04-14 13:11:30.732103374 -0500
@@ -2,7 +2,7 @@
 GIMPTOOL=gimptool-2.0
 
 CC=gcc
-CFLAGS=-pipe -g -O2 -Wall $(shell pkg-config --cflags gtk+-2.0 gimp-2.0)
+CFLAGS=-pipe -g $(RPM_OPT_FLAGS) $(shell pkg-config --cflags gtk+-2.0 gimp-2.0)
 
 OS=$(shell uname -s)
 ifeq ($(OS), Linux)
@@ -21,7 +21,7 @@
 all: $(TARGET)
 
 $(TARGET): $(OBJS)
-	$(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(TARGET)
+	$(CC) $(LDFLAGS) $(OBJS) $(LIBS) -lm -o $(TARGET)
 		 
 clean:
 	rm -f *.o $(TARGET)
openSUSE Build Service is sponsored by