From 0cb2e151909ef1055bc09775654e974e2ba4e15b Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 10 May 2022 17:16:38 +0200 Subject: [PATCH] Allowed to override by variable CC the use of g++ in releng/auto_cxx . Proposal by Tom Stellard. --- releng/README | 5 +++-- releng/auto_cxx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/releng/README b/releng/README index 2a96097d..3b023653 100644 --- a/releng/README +++ b/releng/README @@ -141,8 +141,9 @@ All general options are accepted. ./auto_cxx Not included in GNU xorriso. Exercises inclusion of xorriso/xorriso.h and libisoburn/libisoburn.h - in C++ programs and linking of the libraries. It might be necessary - to set compiler options by shell variable CFLAGS before running the test. + in C++ programs and linking of the libraries. It is possible to override the + use of g++ as compiler by shell variable CC. It might be necessary to set + compiler options by shell variable CFLAGS before running the test. It might be necessary to hand over the install directory of libburn and libisofs in shell variable LD_LIBRARY_PATH. E.g. if on FreeBSD the include headers libisofs.h , libburn.h are not found: diff --git a/releng/auto_cxx b/releng/auto_cxx index 71ed53fe..1086ee4b 100755 --- a/releng/auto_cxx +++ b/releng/auto_cxx @@ -29,7 +29,7 @@ fi # xorriso binary is not needed for that particular test SAMPLE_CODE_DIR=codesamples -CC=g++ +CC=${CC:-g++} # check compiler if ! which "${CC}" >/dev/null 2>&1; then