Jump to page: 1 2 3
Thread overview
[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs
Jan 26, 2015
Vladimir Panteleev
May 13, 2015
Walter Bright
May 14, 2015
Walter Bright
May 14, 2015
Leandro Lucarella
May 14, 2015
yebblies
May 14, 2015
Leandro Lucarella
May 18, 2015
Martin Nowak
May 20, 2015
Walter Bright
May 21, 2015
Leandro Lucarella
May 21, 2015
Walter Bright
May 21, 2015
Leandro Lucarella
May 22, 2015
Dicebot
Jun 03, 2015
Walter Bright
Jun 03, 2015
Dicebot
Jun 03, 2015
Walter Bright
Jun 03, 2015
Walter Bright
Jun 15, 2015
Leandro Lucarella
Aug 09, 2015
Martin Nowak
Aug 09, 2015
Dicebot
Aug 09, 2015
Martin Nowak
Aug 09, 2015
Martin Nowak
Aug 09, 2015
Martin Nowak
Sep 06, 2015
Martin Nowak
Jan 18, 2016
Vladimir Panteleev
Dec 17, 2022
Iain Buclaw
January 26, 2015
https://issues.dlang.org/show_bug.cgi?id=7044

Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow@gmail.com

--- Comment #32 from Vladimir Panteleev <thecybershadow@gmail.com> ---
(In reply to yebblies from comment #31)
> Yes, just a workaround for you until we get a real fix.

Possibly a better workaround is a custom CC which prepends --no-as-needed onto gcc's command line:

https://issues.dlang.org/show_bug.cgi?id=12572#c5

--
May 13, 2015
https://issues.dlang.org/show_bug.cgi?id=7044

--- Comment #33 from Walter Bright <bugzilla@digitalmars.com> ---
A start: https://github.com/D-Programming-Language/dmd/pull/4646

--
May 14, 2015
https://issues.dlang.org/show_bug.cgi?id=7044

--- Comment #34 from Walter Bright <bugzilla@digitalmars.com> ---
BTW, it is possible now to select different configuration files entirely with the -conf=filename switch.

--
May 14, 2015
https://issues.dlang.org/show_bug.cgi?id=7044

--- Comment #35 from Leandro Lucarella <leandro.lucarella@sociomantic.com> ---
(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 be missing something because I don't see the relation :-/

--
May 14, 2015
https://issues.dlang.org/show_bug.cgi?id=7044

--- Comment #36 from yebblies <yebblies@gmail.com> ---
(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 is the PR and this addressing this issue? I might be missing something because I don't see the relation :-/

It's a step towards implementing comment #16

--
May 14, 2015
https://issues.dlang.org/show_bug.cgi?id=7044

--- Comment #37 from Leandro Lucarella <leandro.lucarella@sociomantic.com> ---
(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 files entirely with the -conf=filename switch.
> > 
> > How is the PR and this addressing this issue? I might be missing something because I don't see the relation :-/
> 
> It's a step towards implementing comment #16

OK, there was still one problem with that approach, but I guess, fair enough.

--
May 18, 2015
https://issues.dlang.org/show_bug.cgi?id=7044

--- Comment #38 from Martin Nowak <code@dawg.eu> ---
Also see issue 13324 – dynamically load libcurl at runtime.

--
May 20, 2015
https://issues.dlang.org/show_bug.cgi?id=7044

--- Comment #39 from Walter Bright <bugzilla@digitalmars.com> ---
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.

Note that:

    DFLAGS += string

can be handled without adding new features with:

    DFLAGS = %DFLAGS% string

The current way the config file is read twice wreaks havoc with the order in which sections are processed and things like appending to existing environment variables. This all has to be redone, but I'd like a green light on it being an acceptable resolution of this bugzilla issue before investing the effort.

(Currently order of evaluation is undocumented.)

I decided not to have -version=identifier do this, because inevitably someone will have a problem with it and want another switch to be able to do them independently.

Calling it -confsection will place it next to the -conf switch in the documentation, making the connection easily discoverable.

--
May 21, 2015
https://issues.dlang.org/show_bug.cgi?id=7044

--- Comment #40 from Leandro Lucarella <leandro.lucarella@sociomantic.com> ---
(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 automatically added when -debug is specified? If yes (and there will be no more -llib flags automatically added at a certain place hardcoded in dmd), then I think this solves the problem at hand.

For cross-compiling it might be useful to also automatically enable other predefined sections, similar to -version, like linux, x86_64, etc., which is what I think Marting was suggesting. But that would be an extra feature.

--
May 21, 2015
https://issues.dlang.org/show_bug.cgi?id=7044

--- Comment #41 from Walter Bright <bugzilla@digitalmars.com> ---
(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 always add such a feature later, but it would be very hard to subtract it if it turns out to not be right.


> If yes (and there will be no more -llib flags automatically added at a certain place hardcoded in dmd), then I think this solves the problem at hand.

I don't see any reason to add more.


> For cross-compiling it might be useful to also automatically enable other predefined sections, similar to -version, like linux, x86_64, etc., which is what I think Marting was suggesting. But that would be an extra feature.

I'd rather do without such, preferring to keep things simple and easy to explain.

--
« First   ‹ Prev
1 2 3