http://d.puremagic.com/issues/show_bug.cgi?id=7044
--- Comment #17 from Leandro Lucarella <leandro.lucare...@sociomantic.com> 2013-05-29 07:01:53 PDT --- (In reply to comment #16) > (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. Agreed > The flags -debuglib and -defaultlib make linking more complicated even though > they are almost redundant and can be replaced with -L-l. I don't agree with this, because you need to change a whole set of flags depending on which runtime you are using. -L-l is just not good enough. > 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= This will fix the debug vs. normal runtime, true, but it doesn't help to *easily* use a different runtime library, you have to mess with the config file, but I want a way to do it from the command line, so it can be integrated in the build system. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------