NX: Always compile with -fPIC.

Suggested by Mathias Westerdahl.
This commit is contained in:
Mike Pall 2022-11-22 09:52:56 +01:00
parent e05371bdc3
commit 46aa45dcbd

View File

@ -121,6 +121,7 @@ goto :BUILD
@set TARGETLIB=libluajit_%TARGETLIB_SUFFIX%.a
:BUILD
del %TARGETLIB%
@set LJCOMPILE=%LJCOMPILE% -fPIC
@if "%1" neq "noamalg" goto :AMALG
for %%f in (lj_*.c lib_*.c) do (
%LJCOMPILE% %%f