Re: Python recompile

James Kuyper <[email protected]>
Newsgroups comp.lang.c,comp.lang.c++,comp.lang.python
Organization A noiseless patient Spider
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.