Explicitly request signed char.

The ckb-daemon code seems to implicitly assume char is signed,
which, while accurate for x86 for performance reasons, is
unspecified by the C standard. This breaks the code on ARM chips
like the Raspberry Pi where char is unsigned by default.

Therefore, explicitly request signed chars to GCC/Clang.
This commit is contained in:
Dan Ravensloft
2017-08-03 16:01:41 +01:00
parent 5c51eaacee
commit 33a9607cf6
+6
View File
@@ -11,6 +11,12 @@ QMAKE_LIBS_OPENGL =
QMAKE_CFLAGS += -Wno-unused-parameter
QMAKE_CXXFLAGS += -Wno-unused-parameter
# Explicitly require signed char to fix issues on ARM, where char is
# unsigned by default for performance reasons, compared to x86's
# default-signed char.
QMAKE_CFLAGS += -fsigned-char
QMAKE_CXXFLAGS += -fsigned-char
# Output path
macx {
DESTDIR = $$PWD/../..