[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 Iain Buclaw changed: What|Removed |Added Priority|P2 |P3 --

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2016-10-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 Andrei Alexandrescu changed: What|Removed |Added Keywords||bootcamp CC|

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2016-01-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 Vladimir Panteleev changed: What|Removed |Added See Also||https://issues.dlang.org/sh

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-09-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #54 from Martin Nowak --- *** Issue 12572 has been marked as a duplicate of this issue. *** --

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-08-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #53 from Martin Nowak --- (In reply to Martin Nowak from comment #52) > We could solve this by always adding -L--as-needed -L-lcurl (which requires > libcurl-dev packages) In the meantime LDC took this approach. https://github.com/ldc-dev

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-08-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #52 from Martin Nowak --- Sorry for taking over this bug report, none of the dmd.conf enhancements address the original issue. Linking is already fully configurable since we have both the `-defaultlib=` and the `-conf=` switch. Problem i

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-08-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #51 from Martin Nowak --- I think requiring a `-confsection` switch limits the usefulness a lot. One reason for the extended ini format is that we can make the linking configurable for certain targets, e.g. m32coff or msvc14 (see [here](h

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-08-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #50 from Dicebot --- Leandro is on (quite long) sick leave right now. I will start poking Walter again about this issue once he is back. --

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-08-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #49 from Martin Nowak --- Great to see some momentum for this. We also need something like this to select different libs based on m32coff or the installed VC version, see https://github.com/D-Programming-Language/druntime/pull/1341. --

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-06-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #48 from Leandro Lucarella --- (In reply to Walter Bright from comment #44) > > How is this then different from just specifying a whole new config file? > > Because multiple sections can be selected, rather than having a separate > config

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 Andrei Alexandrescu changed: What|Removed |Added Version|D1 & D2 |D2 --

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-06-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #47 from Walter Bright --- (In reply to Dicebot from comment #45) > Leandro is currently on vacation. I suggest to pause this until he is back. Sure, and meanwhile there's a pull request we can talk about whenever everyone is ready. --

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-06-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #46 from Walter Bright --- https://github.com/D-Programming-Language/dmd/pull/4713 --

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-06-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #45 from Dicebot --- Leandro is currently on vacation. I suggest to pause this until he is back. --

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-06-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #44 from Walter Bright --- > How is this then different from just specifying a whole new config file? Because multiple sections can be selected, rather than having a separate config file for each combination of sections, which would be a

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-05-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 Dicebot changed: What|Removed |Added CC||pub...@dicebot.lv --- Comment #43 from Dicebot ---

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-05-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #42 from Leandro Lucarella --- (In reply to Walter Bright from comment #41) > (In reply to Leandro Lucarella from comment #40) > > Will -confsection=debug be automatically added when -debug is specified? > > No. You'll have to add -confse

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-05-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #41 from Walter Bright --- (In reply to Leandro Lucarella from comment #40) > Will -confsection=debug be automatically added when -debug is specified? No. You'll have to add -confsection=debug to have a [debug] section parsed. We can alwa

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-05-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #40 from Leandro Lucarella --- (In reply to Walter Bright from comment #39) > Calling it -confsection will place it next to the -conf switch in the > documentation, making the connection easily discoverable. Will -confsection=debug be aut

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-05-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #39 from Walter Bright --- Here's my evil plan: Add a switch -confsection=sectionname which will cause [sectionname] in the config file to be parsed. There can be multiple such switches and sections, they'll be parsed in lexical order.

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-05-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #38 from Martin Nowak --- Also see issue 13324 – dynamically load libcurl at runtime. --

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-05-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #37 from Leandro Lucarella --- (In reply to yebblies from comment #36) > (In reply to Leandro Lucarella from comment #35) > > (In reply to Walter Bright from comment #34) > > > BTW, it is possible now to select different configuration file

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-05-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #36 from yebblies --- (In reply to Leandro Lucarella from comment #35) > (In reply to Walter Bright from comment #34) > > BTW, it is possible now to select different configuration files entirely > > with the -conf=filename switch. > > How

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-05-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #35 from Leandro Lucarella --- (In reply to Walter Bright from comment #34) > BTW, it is possible now to select different configuration files entirely > with the -conf=filename switch. How is the PR and this addressing this issue? I might

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-05-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #34 from Walter Bright --- BTW, it is possible now to select different configuration files entirely with the -conf=filename switch. --

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-05-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 --- Comment #33 from Walter Bright --- A start: https://github.com/D-Programming-Language/dmd/pull/4646 --

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7044 Vladimir Panteleev changed: What|Removed |Added CC||thecybersha...@gmail.com --- Comment #32

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2014-03-07 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #31 from yebblies 2014-03-08 16:04:38 EST --- (In reply to comment #29) > > This is not actually the best option, Yes, just a workaround for you until we get a real fix. > because the runtime is statically > compiled so we'd hav

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2014-03-07 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #30 from Martin Nowak 2014-03-07 11:09:55 PST --- This is necessary to move the hardcoded link flags into the config file so that dmd package maintainers can adjust them to different platforms. Therefor I'm absolutely supporting th

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2014-03-07 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #29 from Leandro Lucarella 2014-03-07 10:21:20 PST --- (In reply to comment #28) > (In reply to comment #27) > > Added industry keyword, it's starting to impact us seriously at Sociomantic. > > Have you considered building a new

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2014-03-07 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=7044 yebblies changed: What|Removed |Added CC||yebbl...@gmail.com --- Comment #28 from ye

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2014-03-06 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=7044 Leandro Lucarella changed: What|Removed |Added Keywords||industry --- Comment #27 from Lea

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-10-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #26 from Martin Nowak 2013-10-15 04:13:29 PDT --- I haven't yet got around to do this though the implementation is fairly simple and similar to the Environment64 change. https://github.com/D-Programming-Language/dmd/commit/190702057

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-05-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #25 from Leandro Lucarella 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 ca

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-05-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #24 from Martin Nowak 2013-05-29 12:34:27 PDT --- (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. M

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-05-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #23 from Leandro Lucarella 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 i

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-05-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #22 from Martin Nowak 2013-05-29 09:26:04 PDT --- (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-compi

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-05-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #21 from Leandro Lucarella 2013-05-29 07:59:07 PDT --- Another option would be to just eliminate the -release (or the -debug) flag. Having 3 modes to compile stuff (release, normal, debug) might be too much. But that's even a bigge

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-05-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #20 from Leandro Lucarella 2013-05-29 07:57:15 PDT --- (In reply to comment #19) > (In reply to comment #18) > > (In reply to comment #17) > > > I don't agree with this, because you need to change a whole set of flags > > > dependi

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-05-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #19 from Leandro Lucarella 2013-05-29 07:51:03 PDT --- (In reply to comment #18) > (In reply to comment #17) > > I don't agree with this, because you need to change a whole set of flags > > depending on which runtime you are using.

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-05-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #18 from Martin Nowak 2013-05-29 07:33:53 PDT --- (In reply to comment #17) > 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. > True

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-05-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #17 from Leandro Lucarella 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

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-05-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #16 from Martin Nowak 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 comp

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-05-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #15 from Leandro Lucarella 2013-05-27 09:28:43 PDT --- (In reply to comment #14) > Since the fixup to the link command in this case is quite simple, how about a > flag in dmd that performs a dry run and just prints out the link com

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-05-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 Ellery Newcomer changed: What|Removed |Added CC||ellery-newco...@utulsa.edu --- Comme

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-04-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #13 from Leandro Lucarella 2013-04-15 04:48:39 PDT --- (In reply to comment #12) > (In reply to comment #11) > > Is need to allow changing easily between a "normal" and a "debug" build with > > -debug or -g (I don't remember which

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-04-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #12 from Martin Nowak 2013-04-12 07:34:47 PDT --- (In reply to comment #11) > Is need to allow changing easily between a "normal" and a "debug" build with > -debug or -g (I don't remember which one triggers switching to debuglib >

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-04-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #11 from Leandro Lucarella 2013-04-12 03:33:40 PDT --- (In reply to comment #10) > I think link flags should not be hardcoded in the compiler. They are platform > dependent and belong into a configuration file so that package maint

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-04-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu --- Comment #10 from Marti

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-01-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #9 from Leandro Lucarella 2013-01-09 04:27:55 PST --- BTW, as things are now, you can't compile a program using curl wrapper in phobos, so this doesn't even apply only to the runtime: http://stackoverflow.com/questions/10095150/std

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-01-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #8 from Leandro Lucarella 2013-01-09 04:11:47 PST --- (In reply to comment #7) > This is getting complex enough that I have to go back to basics and point out > that all dmd is doing is building a command line that is sent to gcc t

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-01-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #7 from Walter Bright 2013-01-08 12:44:18 PST --- This is getting complex enough that I have to go back to basics and point out that all dmd is doing is building a command line that is sent to gcc to do the actual work. So I sugge

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2013-01-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #6 from Leandro Lucarella 2013-01-08 07:44:36 PST --- Full (slightly updated) proposal: * Change -defaultlib and -debuglib to accept an arbitrary number of linker flags. Example: -defaultlib="-lphobos2 -lrt -ldl". * Remove all

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2012-10-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 --- Comment #5 from Leandro Lucarella 2012-10-22 02:10:58 PDT --- (In reply to comment #4) > The problem is the order of -defaultlib and -L is fixed as: > > 1. -L flags > 2. libraries on the command line > 3. libraries specified by pragma(lib

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2012-10-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2012-10-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 Leandro Lucarella changed: What|Removed |Added Keywords|pull| --- Comment #3 from Leandro Lucar

[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

2012-07-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7044 Leandro Lucarella changed: What|Removed |Added Summary|[PATCH] Add -sL swith to|Missing a way to control