diff --git a/src/support/Package.cpp b/src/support/Package.cpp index b4b0e1493d..f5ee5d5436 100644 --- a/src/support/Package.cpp +++ b/src/support/Package.cpp @@ -154,8 +154,9 @@ Package::Package(string const & command_line_arg0, std::string const & Package::configure_command() const { if (configure_command_.empty()) { + std::string &command = const_cast(configure_command_); FileName const configure_script(addName(system_support().absFileName(), "configure.py")); - configure_command_ = os::python() + ' ' + + command = os::python() + ' ' + quoteName(configure_script.toFilesystemEncoding()) + with_version_suffix() + " --binary-dir=" + quoteName(FileName(binary_dir().absFileName()).toFilesystemEncoding());