Take over linker from env if present.

This commit is contained in:
Joris Vink 2016-12-29 20:14:16 +01:00
parent 6faed21a24
commit fe7237fd74

View File

@ -455,11 +455,15 @@ cli_build(int argc, char **argv)
rootdir = ".";
appl = basename(pwd);
if ((p = getenv("CC")) != NULL)
if ((p = getenv("CC")) != NULL) {
compiler_c = p;
compiler_ld = p;
}
if ((p = getenv("CXX")) != NULL)
if ((p = getenv("CXX")) != NULL) {
compiler_cpp = p;
compiler_ld = p;
}
source_files_count = 0;
cxx_files_count = 0;