On Thu, Jun 09, 2022 at 03:00:24PM +0500, Andrey Rahmatullin wrote: > > The build system here is the standard Python setup.py, except for this > > library. That is built by the following script: > > > > --- > > g++ -m64 -shared -o attach_linux_amd64.so -fPIC -nostartfiles attach.cpp > > mv attach_linux_amd64.so ../attach_linux_amd64.so > > echo Compiled amd64 > > --- > > > > There's not even an attempt at working out ${libdir} or so on. > Sure, it's not necessary to know the installation path at the compile and > link time. It's only needed at the install time.
Ah, to clarify: this script compiles the library and sticks it into the parent directory. It is then installed with the rest of the Python module via setup.py into /usr/lib/python3/dist-packages/... So if I want to install it somewhere else, I will have to handle that manually. Best wishes, Julian