[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
Thu May 30 01:05:03 PDT 2013


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



--- Comment #25 from Leandro Lucarella <leandro.lucarella at sociomantic.com> 2013-05-30 01:05:00 PDT ---
(In reply to comment #24)
> (In reply to comment #23)
> > Then when compiling with -debug I get 2 different libraries linked. If I leave
> > [Environment] empty, then I can't link a program without using -debug.
> 
> Mmh, the simplest solutions I can think of would be these.
> 
> [Environment-debug]
> DFLAGS=-L-lphobos-dbg
> 
> or
> 
> [Environment]
> LIB=phobos2
> 
> [Environment-debug]
> LIB=phobos2-dbg
> 
> [Environment]
> DFLAGS+=-L-l%LIB%

Interesting, so the file is interpreted in order and you can override variables
like that and specify the same [Section] several times. Then again I'm out of
technical arguments :)

-- 
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