https://issues.dlang.org/show_bug.cgi?id=7044
--- Comment #52 from Martin Nowak <[email protected]> --- 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. --
