From 748510300d55ba7eb5926a6f093f0912dfe633e1 Mon Sep 17 00:00:00 2001 From: cutealien Date: Fri, 12 Feb 2021 11:29:53 +0000 Subject: [PATCH] Remove redundant compile flags -fstrict-aliasing -fexpensive-optimizations Both are already included in -O2 (which is in included in the -O3 we use) Thanks @randomMesh for reporting: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=52692 Note: -fstrict-aliasing also gets removed in debug now where it also was enabled. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6190 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Irrlicht/Makefile b/source/Irrlicht/Makefile index 2b215f42..535280d7 100644 --- a/source/Irrlicht/Makefile +++ b/source/Irrlicht/Makefile @@ -71,17 +71,17 @@ LINKOBJ = $(IRRMESHOBJ) $(IRROBJ) $(IRRPARTICLEOBJ) $(IRRANIMOBJ) \ #Compiler flags CXXINCS = -I../../include -Izlib -Ijpeglib -Ilibpng CPPFLAGS += $(CXXINCS) -DIRRLICHT_EXPORTS=1 -CXXFLAGS += -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing +CXXFLAGS += -Wall -pipe -fno-exceptions -fno-rtti #CXXFLAGS += -std=gnu++11 -U__STRICT_ANSI__ ifndef NDEBUG CXXFLAGS += -g -D_DEBUG else -CXXFLAGS += -fexpensive-optimizations -O3 +CXXFLAGS += -O3 endif ifdef PROFILE CXXFLAGS += -pg endif -CFLAGS := -O3 -fexpensive-optimizations -DPNG_THREAD_UNSAFE_OK -DPNG_NO_MMX_CODE -DPNG_NO_MNG_FEATURES -DPNG_ARM_NEON_OPT=0 +CFLAGS := -O3 -DPNG_THREAD_UNSAFE_OK -DPNG_NO_MMX_CODE -DPNG_NO_MNG_FEATURES -DPNG_ARM_NEON_OPT=0 sharedlib sharedlib_osx: CXXFLAGS += -fPIC sharedlib sharedlib_osx: CFLAGS += -fPIC