3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

build: Add -fno-exceptions to compiler flags

This commit is contained in:
Marcel Holtmann 2018-10-04 10:27:42 +02:00
parent 6e70c84f8e
commit 78bb325d3b

View File

@ -12,7 +12,7 @@ AC_DEFUN([AC_PROG_CC_PIE], [
AC_DEFUN([COMPILER_FLAGS], [ AC_DEFUN([COMPILER_FLAGS], [
if (test "${CFLAGS}" = ""); then if (test "${CFLAGS}" = ""); then
CFLAGS="-Wall -O2 -fsigned-char " CFLAGS="-Wall -O2 -fsigned-char -fno-exceptions"
CFLAGS+=" -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" CFLAGS+=" -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
fi fi
if (test "$USE_MAINTAINER_MODE" = "yes"); then if (test "$USE_MAINTAINER_MODE" = "yes"); then