From cd9b875297dfb7144e66f4c93d679952941096e7 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 17 Feb 2023 11:31:26 -0500 Subject: [PATCH] reorganize compiler switches --- Android.bp | 2 +- Makefile | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Android.bp b/Android.bp index 4ab69df..11725a6 100644 --- a/Android.bp +++ b/Android.bp @@ -1,10 +1,10 @@ common_cflags = [ + "-pipe", "-O3", //"-flto", "-fPIC", "-fvisibility=hidden", //"-fno-plt", - "-pipe", "-Wall", "-Wextra", "-Wcast-align", diff --git a/Makefile b/Makefile index e5551c5..0f9a797 100644 --- a/Makefile +++ b/Makefile @@ -18,9 +18,9 @@ $(shell $(CC) $(if $(filter clang,$(CC)),-Werror=unknown-warning-option) -E $1 - endef CPPFLAGS := $(CPPFLAGS) -D_GNU_SOURCE -I include -SHARED_FLAGS := -O3 -flto -fPIC -fvisibility=hidden -fno-plt \ - $(call safe_flag,-fstack-clash-protection) -fstack-protector-strong -pipe -Wall -Wextra \ - $(call safe_flag,-Wcast-align=strict,-Wcast-align) -Wcast-qual -Wwrite-strings +SHARED_FLAGS := -pipe -O3 -flto -fPIC -fvisibility=hidden -fno-plt \ + $(call safe_flag,-fstack-clash-protection) -fstack-protector-strong \ + -Wall -Wextra $(call safe_flag,-Wcast-align=strict,-Wcast-align) -Wcast-qual -Wwrite-strings ifeq ($(CONFIG_WERROR),true) SHARED_FLAGS += -Werror