--- bsnes-libretro/nall/Makefile.orig	2015-10-22 07:40:14 UTC
+++ bsnes-libretro/nall/Makefile
@@ -40,7 +40,7 @@ ifeq ($(compiler),)
   else ifeq ($(platform),osx)
     compiler := clang++ -stdlib=libc++
   else
-    compiler := g++
+    compiler := $(CXX)
   endif
 endif
 
