-L parameters in ppaslink.bat should be quoted if contain spaces
Original Reporter info from Mantis: Sergey Bychkow @sergey.bychkow
-
Reporter name: Sergey Bychkow
Original Reporter info from Mantis: Sergey Bychkow @sergey.bychkow
- Reporter name: Sergey Bychkow
Description:
-LPath-To-Folder parameter should be quoted if Path-To-Folder contain spaces: "-LPath To Folder". This can also be issue for other parameters, i.e. -F
Sample line from ppaslink.bat
C:\lazarus\fpc\trunk\bin\i386-darwin\i386-darwin-ld.exe C:\lazarus\fpc\trunk\units\i386-darwin\crt1.o -order_file "C:\Path To Project\symbol_order.fpc" -multiply_defined suppress -L. -o "C:\Path To Project\ProjectForMac" -arch i386 -macosx_version_min 10.4 -L.\Sources\ -LC:\Path To Related Project\Sources\ -L.\ ...etc...
Additional information:
There is another issue that -L and -L parameters contain path with trainling delimiter, and linker for MacOSX from cctools-port project doesn't like it. I will report this as separate issue, but I think this can be fixed in one place. May be I will produce a patch for this.
I created temporary fix for all problems I found with compiling/assempling/linking for MacOSX from Windows. This is fpc-link-helper. Source is attached. It should be placed instead of real i386-darwin-ld.exe, and real i386-darwin-ld.exe should be renamed to real-i386-darwin-ld.exe
Mantis conversion info:
- Mantis ID: 35777
- OS: Windows
- Version: 3.3.1