it generates the static library, but when linking inside my dynamic library the following error appears:
/bin/ld: ./libs/libpython3.11.a(pythonrun.o): warning: relocation against `_Py_UnhandledKeyboardInterrupt' in read-only section `.text.unlikely'
/bin/ld: ./libs/libpython3.11.a(pylifecycle.o): relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
I tried compiling python with -fPIC but not sure if the argument worked, but I want to compile it with the following arguments: