summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2022-02-23 20:57:41 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2022-02-27 01:48:36 +0100
commit6c5621ae0760187397cf1a8a490720f395687ae5 (patch)
tree983438081ed8f02b88e2e61cfbf0f07dd0a3199d
parentfe32260decf2aed704969e283135182e0170a97c (diff)
Revert "gcc: workaround no longer required"
This reverts commit 3fe39f9a1a9ddd433d1225ea14e9953a6470bbad. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
-rw-r--r--toolchain/gcc/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 99a63a543..3f533bad9 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -21,6 +21,12 @@ TARGET_CFLAGS:= $(filter-out -msep-data,$(TARGET_CFLAGS))
TARGET_CXXFLAGS:= $(filter-out -msep-data,$(TARGET_CXXFLAGS))
endif
+# for ARM, we need to filter out some flags
+ifeq ($(ADK_TARGET_ARCH_ARM),y)
+TARGET_CFLAGS:= $(filter-out -mcpu=cortex-a9,$(TARGET_CFLAGS))
+TARGET_CXXFLAGS:= $(filter-out -mcpu=cortex-a9,$(TARGET_CXXFLAGS))
+endif
+
ifeq ($(ADK_TARGET_USE_STATIC_AND_SHARED_LIBS),y)
TARGET_CFLAGS:= $(filter-out -static,$(TARGET_CFLAGS))
TARGET_CXXFLAGS:= $(filter-out -static,$(TARGET_CXXFLAGS))