Replace default optimization flag with -fno-strict-aliasing

The -fomit-frame-pointer is part of the standard optimization flags in
-O1 and above, so no need to enable it explicitly.

For reference https://lkml.org/lkml/2003/2/26/158

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-10-24 08:43:12 +02:00
parent 6fa899db38
commit 097d9efdbe

View File

@ -22,7 +22,7 @@ noinst_PROGRAMS = tsyslogd syslog_tst
AM_CFLAGS = -W -Wall -Wextra
AM_CFLAGS += -Wno-unused-result -Wno-unused-parameter
AM_CFLAGS += -fomit-frame-pointer -fno-strength-reduce
AM_CFLAGS += -fno-strict-aliasing -fno-strength-reduce
syslogd_SOURCES = syslogd.c pidfile.c pidfile.h
syslogd_CPPFLAGS = -D_BSD_SOURCE -D_DEFAULT_SOURCE