[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
Thu May 21 04:27:47 PDT 2015


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

--- Comment #42 from Leandro Lucarella <leandro.lucarella at sociomantic.com> ---
(In reply to Walter Bright from comment #41)
> (In reply to Leandro Lucarella from comment #40)
> > Will -confsection=debug be automatically added when -debug is specified?
> 
> No. You'll have to add -confsection=debug to have a [debug] section parsed.
> We can always add such a feature later, but it would be very hard to
> subtract it if it turns out to not be right.

How is this then different from just specifying a whole new config file?

> > For cross-compiling it might be useful to also automatically enable other
> > predefined sections, similar to -version, like linux, x86_64, etc., which is
> > what I think Marting was suggesting. But that would be an extra feature.
> 
> I'd rather do without such, preferring to keep things simple and easy to
> explain.

Same question as above. The whole point of this issue, IMHO, is to select
different config options (specifically link flags) automatically depending on
how you are building your project.

The user shouldn't care about the runtime needing different flags when using
-debug or not. The user should be required to just use -debug when he wants to
use the debug version of the library, not -debug -confsection=debug, that's
overly cryptic IMHO. And not (much) better than what we have now (-debug
-config=/whatever/config.debug.ini).

--


More information about the Digitalmars-d-bugs mailing list