]> gitweb.factorcode.org Git - factor.git/blobdiff - GNUmakefile
debian: Don't install gcc g++ on debian.
[factor.git] / GNUmakefile
index df11a97a6686baf5356027c99cbd339a811ea408..2a779b485562ab534c4d9c073bb78f7ef4f5ac21 100644 (file)
@@ -5,6 +5,14 @@ ifdef CONFIG
        DEBUG ?= 0
        REPRODUCIBLE ?= 0
 
+       # gmake's default CXX is g++, we prefer c++
+       SHELL_CXX = $(shell printenv CXX)
+       ifeq ($(SHELL_CXX),)
+               CXX=c++
+       else
+               CXX=$(SHELL_CXX)
+       endif
+
        include $(CONFIG)
 
        CFLAGS = -Wall \