Fixed remaining Android compatibility issues: added compiler flag to interpret char as signed char.
This commit is contained in:
parent
8483b95256
commit
e3f394af01
@ -1005,6 +1005,11 @@ if(CMAKE_COMPILER_IS_GNUCXX)
|
|||||||
|
|
||||||
set(EXTRA_C_FLAGS_RELEASE "${EXTRA_C_FLAGS_RELEASE} -DNDEBUG")
|
set(EXTRA_C_FLAGS_RELEASE "${EXTRA_C_FLAGS_RELEASE} -DNDEBUG")
|
||||||
set(EXTRA_C_FLAGS_DEBUG "${EXTRA_C_FLAGS_DEBUG} -O0 -ggdb3 -DDEBUG -D_DEBUG")
|
set(EXTRA_C_FLAGS_DEBUG "${EXTRA_C_FLAGS_DEBUG} -O0 -ggdb3 -DDEBUG -D_DEBUG")
|
||||||
|
|
||||||
|
if(ANDROID)
|
||||||
|
#force compiler to interpret char as signed char
|
||||||
|
set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -fsigned-char")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Extra link libs if the user selects building static libs:
|
# Extra link libs if the user selects building static libs:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user