add m32 flag when needed
This commit is contained in:
parent
c556ee744b
commit
548d115df5
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user