$OpenBSD: patch-Makefile,v 1.4 2009/11/13 01:09:00 jolan Exp $
--- Makefile.orig	Sun Oct 25 01:47:35 2009
+++ Makefile	Thu Nov 12 18:21:11 2009
@@ -10,11 +10,11 @@ LIBSRCS += hdhomerun_video.c
 LIBSRCS += hdhomerun_device.c
 LIBSRCS += hdhomerun_device_selector.c
 
-CC    := $(CROSS_COMPILE)gcc
+#CC    := $(CROSS_COMPILE)gcc
 STRIP := $(CROSS_COMPILE)strip
 
-CFLAGS += -Wall -O2 -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
-LDFLAGS += -lpthread
+CFLAGS += -Wall -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
+LDFLAGS += -pthread
 SHARED = -shared -Wl,-soname,libhdhomerun$(LIBEXT)
 
 ifeq ($(OS),Windows_NT)
@@ -41,7 +41,6 @@ all : hdhomerun_config$(BINEXT) libhdhomerun$(LIBEXT)
 
 hdhomerun_config$(BINEXT) : hdhomerun_config.c $(LIBSRCS)
 	$(CC) $(CFLAGS) $+ $(LDFLAGS) -o $@
-	$(STRIP) $@
 
 libhdhomerun$(LIBEXT) : $(LIBSRCS)
 	$(CC) $(CFLAGS) -fPIC -DDLL_EXPORT $(SHARED) $+ $(LDFLAGS) -o $@
