[Issue 23092] New: Cannot cross-compile from Posix to Windows
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 5 13:39:23 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23092
Issue ID: 23092
Summary: Cannot cross-compile from Posix to Windows
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: kinke at gmx.net
Using v2.100.0-rc.1 on Linux:
$ dmd -c bla.d -target=x86_64-pc-windows-msvc
Error: `-fPIC` and `-fPIE` cannot be used when targetting windows
Error: must supply `-mscrtlib` manually when cross compiling to windows
I assume the `-fPIC` comes from the default config file.
I'm explicitly compiling only with -c, not linking, so having to specify
-mscrtlib makes little sense to me.
--
More information about the Digitalmars-d-bugs
mailing list