$NetBSD: patch-aa,v 1.4 2015/01/27 06:13:08 mef Exp $

Make build honor PKGSRC_CFLAGS

--- tmake/lib/netbsd-g++/tmake.conf.orig	2006-07-21 19:54:13.000000000 +0000
+++ tmake/lib/netbsd-g++/tmake.conf
@@ -11,7 +11,7 @@ TMAKE_CC		= gcc
 TMAKE_CFLAGS		=
 TMAKE_CFLAGS_WARN_ON	= -Wall -W
 TMAKE_CFLAGS_WARN_OFF	=
-TMAKE_CFLAGS_RELEASE	= -O2
+TMAKE_CFLAGS_RELEASE	= ${PKGSRC_CFLAGS}
 TMAKE_CFLAGS_DEBUG	= -g
 TMAKE_CFLAGS_SHLIB	= -fPIC
 TMAKE_CFLAGS_YACC	= -Wno-unused -Wno-parentheses
