Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Option to select the linker - auto detect mode
stahta01:
--- Quote from: manuelS on April 21, 2020, 04:58:34 pm ---Hello Tim, thanks a lot. It's working this way! For my understanding just, "Other linker options" is not intended to ever add any compiler libs?
--- End quote ---
Correct. Those settings are added right before the libraries are added.
Edit: The only common exception is the shell scripts/commands are added at that location.
And, they often add libraries.
Tim S.
manuelS:
Thanks once again, it was very helpful to me!
oBFusCATed:
--- Quote from: stahta01 on April 21, 2020, 05:12:54 pm ---
--- Quote from: manuelS on April 21, 2020, 04:58:34 pm ---Hello Tim, thanks a lot. It's working this way! For my understanding just, "Other linker options" is not intended to ever add any compiler libs?
--- End quote ---
Correct. Those settings are added right before the libraries are added.
--- End quote ---
Wrong. This field is intended for people which need to add special linker options. If this is some library so be it.
The problem here is that the order of libraries is important for ld or other unix linkers.
If libA depends on libB, libB should be before libA in the list. But the other linker options are appended to the linker command after the list of libraries, which violates the requirements of libA and you get a linking failure.
Ideally there should be a switch to disable this linker behaviour, but I've not yet implemented this.
Navigation
[0] Message Index
[*] Previous page
Go to full version