diff options
author | Tristan Gingold <tgingold@free.fr> | 2016-12-24 15:45:04 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2016-12-24 15:45:04 +0100 |
commit | 23a879632df599ca18a0e122af48b82dc2d54d15 (patch) | |
tree | 23a1e7bad0560e9f5d59658dc12754708111035b /configure | |
parent | aa10e0e6a0c8e613b70abd17c7ec841d8108d942 (diff) | |
download | ghdl-23a879632df599ca18a0e122af48b82dc2d54d15.tar.gz ghdl-23a879632df599ca18a0e122af48b82dc2d54d15.tar.bz2 ghdl-23a879632df599ca18a0e122af48b82dc2d54d15.zip |
Use CXX in makefiles and configures to design the c++ compiler.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -5,6 +5,7 @@ backend=mcode CC=${CC:-gcc} +CXX=${CXX:-clang++} CFLAGS=${CFLAGS:--g} GNATMAKE=${GNATMAKE:-gnatmake} LDFLAGS= @@ -25,7 +26,7 @@ PIC_FLAGS=-fPIC show_help=no progname=$0 -subst_vars="CC GNATMAKE CFLAGS LDFLAGS build srcdir prefix backend libdirsuffix libdirreverse gcc_src_dir llvm_config llvm_be llvm_be_ver backtrace_lib build_mode EXEEXT SOEXT PIC_FLAGS default_pie" +subst_vars="CC CXX GNATMAKE CFLAGS LDFLAGS build srcdir prefix backend libdirsuffix libdirreverse gcc_src_dir llvm_config llvm_be llvm_be_ver backtrace_lib build_mode EXEEXT SOEXT PIC_FLAGS default_pie" # Find srcdir srcdir=`dirname $progname` @@ -62,7 +63,7 @@ check_version() for opt do optarg=`expr x"$opt" : 'x[^=]*=\(.*\)'` case "$opt" in - CC=*|CFLAGS=*|GNATMAKE=*|LDFLAGS=*) + CC=*|CFLAGS=*|GNATMAKE=*|LDFLAGS=*|CXX=*) optvar=`expr x"$opt" : 'x\([^=]*\)=.*'` eval $optvar=\"$optarg\" ;; |