[Issue 7044] [PATCH] Add -sL swith to pass linker flags at the end of the linker command

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 2 04:18:57 PST 2012


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



--- Comment #1 from Leandro Lucarella <leandro.lucarella at sociomantic.com> 2012-02-02 04:18:56 PST ---
By the way, I don't find the solution elegant at all, but it's the only
solution I could think of. Maybe it would be better to use the same order of
the command line switches when passing them to the linker, even for the
-defaultlib and -debuglib.

Examples:

dmd -L-L/opt/lib -defaultlib=blah -L-lfoo -> gcc -L/opt/lib -lblah -lfoo
dmd -L-lbar -defaultlib=blah -> gcc -lbar -lblah

The problem is what to do then with the switches that are automatically added
by DMD. Maybe those should be just moved to dmd.conf (except for -Xlinker of
course), because I think they are not really needed by the the generated code
but by the runtime, which can be changed via -defaultlib.

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