$OpenBSD: patch-pcbnew_makefile_gtk,v 1.1.1.1 2007/01/09 16:12:55 steven Exp $
--- pcbnew/makefile.gtk.orig	Thu Jan  4 18:32:25 2007
+++ pcbnew/makefile.gtk	Thu Jan  4 18:54:32 2007
@@ -4,7 +4,7 @@ LD = gcc
 
 # Compiler flags.
 
-CPPFLAGS = -Wall -O2 `wx-config --cxxflags`
+CPPFLAGS = -Wall `wx-config --cxxflags` -I${X11BASE}/include
 
 LDFLAGS = -s
 
@@ -17,7 +17,7 @@ all: $(TARGET)
 include makefile.include
 
 CPPFLAGS += $(EXTRACPPFLAGS)
-EDACPPFLAGS = $(CPPFLAGS)
+EDACPPFLAGS = $(CPPFLAGS) $(CXXFLAGS)
 
 
 
