$NetBSD: patch-ab,v 1.17 2005/08/22 11:59:31 adam Exp $

--- converter/other/Makefile.orig	2005-08-06 16:41:07.000000000 +0000
+++ converter/other/Makefile
@@ -109,6 +109,13 @@ HEADERLINKS = pm_config.h pm.h pbm.h pgm
 
 include $(SRCDIR)/Makefile.common
 
+# XXX sparc64 gcc 3.3.x toolchain bug means we must compile exif.o without
+# optimisation
+EXIF_CFLAGS=$(CFLAGS:-O2=)
+exif.o: exif.c
+	$(CC) -c -I$(SRCDIR)/$(SUBDIR) -I. $(INCLUDES) \
+	    $(EXIF_CFLAGS) $(CADD) -o $@ $<
+
 ifeq ($(NEED_RUNTIME_PATH),Y)
   LIBOPTR = -runtime
 else
