add m32 flag when needed

This commit is contained in:
Andrea Cavalli 2022-03-19 17:08:50 +01:00
parent c556ee744b
commit 548d115df5

View File

@ -70,6 +70,12 @@ if [[ "$CORE_VARIABLES_SET" != "YES" ]]; then
export CPU_CORES_NUM="2"
if [[ "$CPU_ARCHITECTURE_NAME" == "armhf" || "$CPU_ARCHITECTURE_NAME" == "386" ]]; then
export CXXFLAGS="$CXXFLAGS -m32"
export CFLAGS="$CFLAGS -m32"
export LDFLAGS="$LDFLAGS -m32"
fi
if [[ "$OPERATING_SYSTEM_NAME" == "windows" ]]; then
export CMAKE_EXTRA_ARGUMENTS_TDJNI="${CMAKE_EXTRA_ARGUMENTS_TDJNI} -DOPENSSL_USE_STATIC_LIBS=True"
elif [[ "$OPERATING_SYSTEM_NAME" == "osx" ]]; then
@ -112,6 +118,7 @@ if [[ "$CORE_VARIABLES_SET" != "YES" ]]; then
echo "CPU_COMPILATION_TOOL=${CPU_COMPILATION_TOOL}"
echo "CC=${CC}"
echo "CXX=${CXX}"
echo "CFLAGS=${CFLAGS}"
echo "CXXFLAGS=${CXXFLAGS}"
echo "CMAKE_EXE_LINKER_FLAGS=${CMAKE_EXE_LINKER_FLAGS}"
echo "CMAKE_EXTRA_ARGUMENTS=${CMAKE_EXTRA_ARGUMENTS}"