lupa icon indicating copy to clipboard operation
lupa copied to clipboard

fix bundled luajit build

Open wheybags opened this issue 2 years ago • 0 comments

When I attempt to build the current git master on linux, I get a link error:

/usr/bin/ld: /tmp/pip-req-build-qmhpkr3b/third-party/luajit20/src/libluajit.a(lj_err.o): relocation R_X86_64_TPOFF32 against `static_uex' can not be used when making a shared object; recompile with -fPIC

Command line used:

pip install -v --no-clean git+https://github.com/scoder/lupa.git@6e3b2fcdaacfda7c1e43eb3c5dfc97c96906b00a --global-option="--use-bundle"

So I added -fPIC to the CFLAGS variable when building the bundled luajit.

wheybags avatar Sep 23 '22 16:09 wheybags