1
0
mirror of https://github.com/gluster/glusterfs.git synced 2026-02-05 15:48:40 +01:00

configure: force 'char' type to be signed (#4039)

On some systems, the 'char' type is interpreted as an unsigned char.
This may cause some issues as Gluster code assumes that 'char' is
signed.

This patch adds the '-fsigned-char' option during compilation to make
sure it works as expected.

Updates: #1000

Signed-off-by: Xavi Hernandez <xhernandez@gmail.com>
This commit is contained in:
Xavi Hernandez
2023-03-27 15:36:45 +02:00
committed by GitHub
parent c267f1a6ea
commit 87432778bb

View File

@@ -270,6 +270,9 @@ if test "x$RPCGEN" = "xno"; then
AC_MSG_ERROR([`rpcgen` not found, glusterfs needs `rpcgen` exiting..])
fi
# Force 'char' type to be signed
CFLAGS="${CFLAGS} -fsigned-char"
# Initialize CFLAGS before usage
AC_ARG_ENABLE([debug],
AC_HELP_STRING([--enable-debug],