diff --git a/CHANGELOG.md b/CHANGELOG.md index 3afec6e..cc8d951 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ (#1354) ### build system +* Don't set CC and CXX in pbuild::compile() + (#1360) * Don't pass an empty string as argument to configure/cmake. (#1356) diff --git a/Pmodules/libpbuild.bash b/Pmodules/libpbuild.bash index d7d11a4..4149896 100644 --- a/Pmodules/libpbuild.bash +++ b/Pmodules/libpbuild.bash @@ -652,9 +652,10 @@ pbuild::compile() { unset V fi (( JOBS == 0 )) && JOBS=$(_get_num_cores) - [[ -v CC ]] || CC=cc - [[ -v CXX ]] || CXX=c++ - /bin/bash -c "CC=$CC CXX=$CXX ${make} -j${JOBS} -e" || \ + #[[ -v CC ]] || CC=cc + #[[ -v CXX ]] || CXX=c++ + #CC=$CC CXX=$CXX + ${make} -j${JOBS} -e || \ std::die 3 \ "%s " "${module_name}/${module_version}:" \ "compilation failed!"