[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
Wed May 29 10:48:50 PDT 2013


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



--- Comment #23 from Leandro Lucarella <leandro.lucarella at sociomantic.com> 2013-05-29 10:48:49 PDT ---
(In reply to comment #22)
> (In reply to comment #19)
> I think the matching scheme should be similar to
> http://registry.vibed.org/package-format#build-settings except that it uses
> os-versions-debug/release-compiler.
> 
> > dmd file.d
> 
> matches [Environment]
>     and [Environment-X86_64] or [Environment-X86]
> 
> > dmd -release file.d
> 
> matches [Environment]
>     and [Environment-X86_64] or [Environment-X86]
>     and [Environment-release]
> but depending on your system it might also match
> [Environment-linux-X86_64-D_SIMD-release-dmd]

Then, this is still no good enough. If I put:

[Environment]
DFLAGS+=-L-lphobos2

[Environment-debug]
DFLAGS+=-L-lphobos2-dbg

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.

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