зеркало из https://github.com/stride3d/NativePath.git
Use -fPIC even for 32-bit
This alows us using the lld llvm linker on Windows to produce .so on 32-bit platform
This commit is contained in:
Родитель
29d556dd86
Коммит
ea1939b6f6
|
@ -20,7 +20,7 @@ mv libNativePath.a build/Linux/x86_64/
|
||||||
rm *.o
|
rm *.o
|
||||||
|
|
||||||
#Linux 32
|
#Linux 32
|
||||||
$CC -m32 $CFLAGS -c $sources
|
$CC -fPIC -m32 $CFLAGS -c $sources
|
||||||
$CC -shared -m32 -Wl,-soname,libNativePath.so -o libNativePath.so *.o
|
$CC -shared -m32 -Wl,-soname,libNativePath.so -o libNativePath.so *.o
|
||||||
ar rcs libNativePath.a *.o
|
ar rcs libNativePath.a *.o
|
||||||
mv libNativePath.so build/Linux/x86/
|
mv libNativePath.so build/Linux/x86/
|
||||||
|
|
Загрузка…
Ссылка в новой задаче