$OpenBSD: patch-Makefile,v 1.1.1.1 2003/11/03 20:34:18 sturm Exp $
--- Makefile.orig	2003-03-31 13:12:35.000000000 +0200
+++ Makefile	2003-11-02 13:32:52.000000000 +0100
@@ -1,9 +1,8 @@
 PKGNAME = gkrellweather
 VERSION = 2.0.6
-CFLAGS = -O2 -Wall -fPIC `pkg-config gtk+-2.0 --cflags`
-LIBS = `pkg-config gtk+-2.0 --libs`
-LFLAGS = -shared
-PREFIX = /usr/local
+CFLAGS += -fPIC `pkg-config gtk+-2.0 gthread-2.0 --cflags` -I${LOCALBASE}/include
+LIBS += `pkg-config gtk+-2.0 gthread-2.0 --libs`
+LFLAGS += -shared -pthread
 
 LOCALEDIR := $(PREFIX)/share/locale
 
@@ -14,13 +13,11 @@ endif
 CFLAGS += -DPACKAGE="\"$(PKGNAME)\""
 export PKGNAME LOCALEDIR
 
-CC = gcc
-
 OBJS = gkrellweather.o
 
 gkrellweather.so: $(OBJS)
 	(cd po && ${MAKE} all )
-	$(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS) -lpthread
+	$(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS)
 
 clean:
 	(cd po && ${MAKE} clean )
