From 31649edc7777e9cf6098cc7bf780f2f963b26d33 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 28 May 2024 01:59:03 -0400 Subject: Add some fixes and compiler flags --- Lua/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Lua/Makefile') diff --git a/Lua/Makefile b/Lua/Makefile index 3c9a745..0912289 100644 --- a/Lua/Makefile +++ b/Lua/Makefile @@ -5,7 +5,8 @@ LUA_DIR=/usr/local LUA_INC= $(LUA_DIR)/include LUA=lua INCS=-I$(LUA_INC) -CFLAGS=-std=c99 -Werror -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -flto +CFLAGS=-std=c11 -Werror -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -fPIC -flto=auto -fvisibility=hidden \ + -fsanitize=signed-integer-overflow -fno-sanitize-recover CWARN=-Wall -Wextra # -Wpedantic -Wsign-conversion -Wtype-limits -Wunused-result -Wnull-dereference \ # -Waggregate-return -Walloc-zero -Walloca -Warith-conversion -Wcast-align -Wcast-align=strict \ -- cgit v1.2.3