[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Aug 9 05:34:03 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=7044

--- Comment #52 from Martin Nowak <code at dawg.eu> ---
Sorry for taking over this bug report, none of the dmd.conf enhancements
address  the original issue.

Linking is already fully configurable since we have both the `-defaultlib=` and
the `-conf=` switch. Problem is that this discards all configuration, so you
need to pass import and library paths to dmd, making this unportable and
cumbersome.

Regarding the linker order for curl, this is a bug on the side of dmd/phobos to
not specify the correct dependencies and shouldn't require a user side flag.
We could solve this by always adding -L--as-needed -L-lcurl (which requires
libcurl-dev packages) or by dynamically loading libcurl (see issue 13324).
The later would also solve the annoying issue with versioned libcurl symbols in
a shared libphobos2.so.

--


More information about the Digitalmars-d-bugs mailing list