$OpenBSD: patch-Makefile,v 1.1.1.1 2008/07/23 08:24:36 sthen Exp $
--- Makefile.orig	Sun Apr 29 06:51:20 2007
+++ Makefile	Sat Jul 19 11:57:55 2008
@@ -52,7 +52,7 @@ $(OBJS): $(OBJ_DIR)/Sentry
 # Under Cygwin replace strip $@ with strip $@.exe
 
 cfdg: $(OBJS)
-	$(LINK.o) $^ -L/usr/local/lib -lstdc++ -lpng -lz -fexceptions -o $@
+	$(LINK.o) $^ -L$(LOCALBASE)/lib -lstdc++ -lpng -lz -lm -fexceptions -o $@
 	strip $@
 
 
@@ -103,7 +103,7 @@ $(OUTPUT_DIR)/rtest-2k.png: cfdg $(RTEST_CFDG)
 #
 
 CPPFLAGS += $(patsubst %,-I%,$(INC_DIRS))
-CPPFLAGS += -O3
+#CPPFLAGS += -O3
 #CPPFLAGS += -ggdb
 
 $(OBJ_DIR)/%.o : %.cpp
