Ver código fonte

NX: Always compile with -fPIC.

Suggested by Mathias Westerdahl.
Mike Pall 2 anos atrás
pai
commit
46aa45dcbd
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      src/nxbuild.bat

+ 1 - 0
src/nxbuild.bat

@@ -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