[Gptfdisk-general] [PATCH 06/15] makefile: Add "-O2" compiler flag for linux/freebsd builds
Brought to you by:
srs5694
From: Bin M. <bme...@gm...> - 2022-04-02 07:00:48
|
At present the makefiles for linux/freebsd builds don't use the "-O2" compiler flag, while other platform builds do. Let's add it to keep consistency with others. Signed-off-by: Bin Meng <bme...@gm...> --- Makefile | 4 ++-- Makefile.freebsd | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 58e9d2d..d1ac530 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -#CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 +#CXXFLAGS+=-O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 +CXXFLAGS+=-O2 -Wall -D_FILE_OFFSET_BITS=64 LDFLAGS+= LIB_NAMES=crc32 support guid gptpart mbrpart basicmbr mbr gpt bsd parttypes attributes diskio diskio-unix MBR_LIBS=support diskio diskio-unix basicmbr mbrpart diff --git a/Makefile.freebsd b/Makefile.freebsd index 13fc0fb..c0dd416 100644 --- a/Makefile.freebsd +++ b/Makefile.freebsd @@ -1,6 +1,6 @@ CXX=clang++ -#CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -I/usr/local/include -CXXFLAGS+=-Wall -D_FILE_OFFSET_BITS=64 -I /usr/local/include +#CXXFLAGS+=-O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -I/usr/local/include +CXXFLAGS+=-O2 -Wall -D_FILE_OFFSET_BITS=64 -I /usr/local/include LDFLAGS+= LIB_NAMES=crc32 support guid gptpart mbrpart basicmbr mbr gpt bsd parttypes attributes diskio diskio-unix MBR_LIBS=support diskio diskio-unix basicmbr mbrpart -- 2.25.1 |