Sujet : Re: Python recompile
De : jameskuyper (at) *nospam* alumni.caltech.edu (James Kuyper)
Groupes : comp.lang.c comp.lang.c++ comp.lang.pythonDate : 07. Mar 2025, 19:17:28
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vqfd7o$3lh46$1@dont-email.me>
References : 1 2 3 4 5 6 7 8
User-Agent : Mozilla Thunderbird
On 3/6/25 01:35, Stuart Redmann wrote:
...
IIRC, there are two different ways of compiling code, position dependent or
position independent (PIC). Apparently you cannot mix these two kinds of
code into a single executable. So if you are using a library that has been
compiled with PIC turned on, you’ll have to compile your code the same way.
Trick question: what changes do you need to make to your C source code
to determine whether position dependent or position independent code is
generated?
There should be a command line parameter/IDE setting to do so, depending on
your toolchain
So, there's no general answer, there's a different answer for different
toolchains. And so the best place to get a toolchain-specific answer is
in a forum devoted to the toolchain you use.