--- Makefile.orig	2015-05-26 17:46:56 UTC
+++ Makefile
@@ -21,7 +21,7 @@ PG_VERSION_NUM := $(shell cat `$(PG_CONF
 		   | perl -ne 'print $$1 and exit if /PG_VERSION_NUM\s+(\d+)/')
 
 # set your custom C++ compler
-CUSTOM_CC = g++
+CUSTOM_CC := $(CXX)
 JSS  = coffee-script.js livescript.js
 # .cc created from .js
 JSCS = $(JSS:.js=.cc)
