diff options
author | Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org> | 2022-03-10 11:12:28 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-03-10 05:13:49 -0700 |
commit | de214792d38700ba470a560cf3729a9bd62acb35 (patch) | |
tree | e75d977fbd6fc6b67f59ed470024b46fffa41cc2 | |
parent | 6231f56da7881bde6fb011e1b54d672f8fe5a224 (diff) | |
download | liburing-de214792d38700ba470a560cf3729a9bd62acb35.tar.gz liburing-de214792d38700ba470a560cf3729a9bd62acb35.tar.bz2 |
src/Makefile: Remove `-fomit-frame-pointer` from default build
-fomit-frame-pointer is already turned on by -O1 optimization flag.
The liburing default compilation uses -O2 optimization, -O2 turns on
all optimization flags specified by -O1. Therefore, we don't need to
specify -fomit-frame-pointer here. Remove it.
Link: https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
Signed-off-by: Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org>
Link: https://lore.kernel.org/r/20220310111231.1713588-2-alviro.iskandar@gnuweeb.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | src/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index 3e1192f..f19d45e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -8,7 +8,7 @@ libdevdir ?= $(prefix)/lib CPPFLAGS ?= override CPPFLAGS += -D_GNU_SOURCE \ -Iinclude/ -include ../config-host.h -CFLAGS ?= -g -fomit-frame-pointer -O2 -Wall -Wextra -fno-stack-protector +CFLAGS ?= -g -O2 -Wall -Wextra -fno-stack-protector override CFLAGS += -Wno-unused-parameter -Wno-sign-compare -DLIBURING_INTERNAL SO_CFLAGS=-fPIC $(CFLAGS) L_CFLAGS=$(CFLAGS) |