[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 06:52:56 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=7044
--- Comment #16 from Martin Nowak <code at dawg.eu> 2013-05-29 06:52:53 PDT ---
(In reply to comment #15)
> I think that's just an ugly hack. What's wrong with the solution I proposed
> which I think solves the problem from the root?
It would be the fourth compiler flag that alters the link flags.
There are two problems:
The runtime dependencies are hardcoded in the compiler.
The flags -debuglib and -defaultlib make linking more complicated even though
they are almost redundant and can be replaced with -L-l.
What we could do IMHO is to allow sections in dmd.conf for certain build
settings.
[Environment]
DFLAGS=-w -g
[Environment-X86]
DFLAGS+=-L-L/usr/lib32
[Environment-X86_64]
DFLAGS+=-L-L/usr/lib64
[Environment-release]
DFLAGS+=-L-lphobos
[Environment-debug]
DFLAGS+=-L-lphobos_d
[Environment-linux]
DFLAGS+=-L-lrt -L-lpthread -L-ldl
[Environment-myversion]
DFLAGS=
--
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