For some reason objcopy --add-gnu-debuglink=<file> doesn't support full path with spaces to file.
Original Reporter info from Mantis: Cyrax
-
Reporter name:
Original Reporter info from Mantis: Cyrax
- Reporter name:
Description:
Like summary says, --add-gnu-debuglink=&LtPos;file> doesn't support full path with spaces to file so passing one will cause objcopy to exit with error and thus fail whole compilation process. The path is quoted properly. Other calls to objcopy are successful.
Compiler executes objcopy utility when running compilation process with -Xg option.
Attached patch will remedy this.
Steps to reproduce:
- Make a quite deep directory structure with spaces.
- Create a simple test project and compile it with -Xg option.
Additional information:
Loosely related to bug report https://bugs.freepascal.org/view.php?id=35323
Mantis conversion info:
- Mantis ID: 35326
- Build: r41823
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 42025 (#0bd16873)