From 42907e66d1d7c9031540d3a94081f36b15b92b1f Mon Sep 17 00:00:00 2001 From: ddpbsd Date: Wed, 19 Dec 2018 11:35:07 -0500 Subject: [PATCH 1/2] Let the user choose the optimization level. --- src/Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index ecd7ea495..b8206b11d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -132,8 +132,6 @@ OSSEC_CFLAGS=${CFLAGS} ifdef DEBUG OSSEC_CFLAGS+=-g -else - OSSEC_CFLAGS+=-O2 endif #DEBUG ifneq (,$(filter ${CLEANFULL},yes y Y 1)) From 25d4099d210abf6c76ff16be7b9750f932efc052 Mon Sep 17 00:00:00 2001 From: ddpbsd Date: Wed, 19 Dec 2018 11:37:18 -0500 Subject: [PATCH 2/2] Let the user decide --- src/external/lua-5.2.3/src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/external/lua-5.2.3/src/Makefile b/src/external/lua-5.2.3/src/Makefile index 2ed028d1a..7ef29d40f 100644 --- a/src/external/lua-5.2.3/src/Makefile +++ b/src/external/lua-5.2.3/src/Makefile @@ -9,7 +9,7 @@ PLAT= none PREFIX?=/var/ossec #CC= gcc -CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL -DPREFIX=\"$(PREFIX)\" $(SYSCFLAGS) $(MYCFLAGS) +CFLAGS= -Wall -DLUA_COMPAT_ALL -DPREFIX=\"$(PREFIX)\" $(SYSCFLAGS) $(MYCFLAGS) LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) LIBS= -lm $(SYSLIBS) $(MYLIBS)