> See 
> <https://stackoverflow.com/questions/55418931/ld-exe-unrecognized-option-z>.

Sorry if this sounds completely dumb, but that post talks about ld on Windows 
in msys2 (which they tell does not support -z), but I am working on Linux.

Also, if -z is not supported (on mingw), why does the Nim compiler use it?

Does everyone who follows the instructions in the manual for cross compiling on 
Windows have the same issue?

> Also try --d:gcc.options.linker="" or --d:gcc.options.always="".

Tried it (I guess you meant to add these options to the nim command?) and it 
didnt't help, same error.
    
    
    $ nim c -d:mingw --d:gcc.options.linker="" --path:/home/dirk/libs/nim 
main.nim
    
    
    Run

Reply via email to