Add custom linking overrides #1390
ftphikari
started this conversation in
Ideas/Requests
Replies: 2 comments 3 replies
-
It's not a bad idea to override possible libraries. I'm not sure on the syntax on whether it should be source level, or command line level, or both. But in general, the idea should work perfectly fine since it's just a basic text substitution problem. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Do you mean replacing dynamic library with a custom-built static library? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently a number of vendor packages link to libraries be it
system:somelib
orsomelib.lib
. However they are all shared, and require to be distributed with the executable, or to be present in the system. It would be better to just have 1 executable without much dependencies, for which I would use my own library. A couple of solutions I see:Solution 1 (not ideal)
Copy the whole package to my project folder, and change every
import
to the library I need.Problems:
sed -i
but a tad bizzare.os
package if you don't like the standard one, but that seems like a bit of an overkill for this scenario.Solution 2 (proposal)
Introduce a flag/source code tag/etc that lets me change every library link to another, i.e.
or
I think adding a flag to the compiler is preferred, since it's unclear how the code would behave if
#replacelib
was called in several places.Beta Was this translation helpful? Give feedback.
All reactions