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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 12 03:33:44 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=7044



--- Comment #11 from Leandro Lucarella <leandro.lucarella at sociomantic.com> 2013-04-12 03:33:40 PDT ---
(In reply to comment #10)
> I think link flags should not be hardcoded in the compiler. They are platform
> dependent and belong into a configuration file so that package maintainers can
> easily patch them.
> 
> I don't see why we need defaultlib/debuglib if one can specify link flags.

Is need to allow changing easily between a "normal" and a "debug" build with
-debug or -g (I don't remember which one triggers switching to debuglib instead
of using defaultlib). Projects can't do that by themselves because they don't
need to know where the runtime is installed and how can they switch between a
library compiled with debug symbols (and maybe assertions, contracts, etc.) and
the normal one.

I think what I proposed is general enough to support all that, even having the
debug library need to link to different libraries than the normal library.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list