$OpenBSD: patch-makefiles_src_subdir_mk,v 1.1.1.1 2011/10/16 03:51:10 bentley Exp $
--- makefiles/src/subdir.mk.orig	Sun Aug 21 06:45:14 2011
+++ makefiles/src/subdir.mk	Fri Sep 30 01:34:28 2011
@@ -65,7 +65,7 @@ CPP_DEPS += \
 src/%.o: ../src/%.cpp
 	@echo 'Building file: $<'
 	@echo 'Invoking: GCC C++ Compiler'
-	g++ -O2 -ffast-math -Wall -c -fmessage-length=0 `pkg-config --cflags gtk+-2.0 gthread-2.0;` -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o"$@" "$<"
+	${CXX} -O2 -ffast-math -Wall -c -fmessage-length=0 ${CXXFLAGS} `pkg-config --cflags gtk+-2.0 gthread-2.0;` -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o"$@" "$<"
 	@echo 'Finished building: $<'
 	@echo ' '
 
