# HG changeset patch # User Mike Miller # Date 1582338305 28800 # Node ID 16ccaebe250a68f472c44a5317e752f31e26e9f9 # Parent 9413b3d56e00591515c7f91839702c6217a28363 mkoctfile: quote linker arguments that may contain spaces (bug #57878) * mkoctfile.in.cc (main): Quote linker arguments and options starting with '-L', '-R', or '-Wl' if they contain file or directory names with spaces. diff -r 9413b3d56e00 -r 16ccaebe250a src/mkoctfile.in.cc --- a/src/mkoctfile.in.cc Fri Feb 21 14:07:14 2020 -0800 +++ b/src/mkoctfile.in.cc Fri Feb 21 18:25:05 2020 -0800 @@ -740,7 +740,7 @@ else if (starts_with (arg, "-Wl,") || starts_with (arg, "-l") || starts_with (arg, "-L") || starts_with (arg, "-R")) { - ldflags += (' ' + arg); + ldflags += (' ' + quote_path (arg)); } #if ! defined (OCTAVE_USE_WINDOWS_API) else if (arg == "-pthread")