summaryrefslogtreecommitdiff
path: root/toolchain/eglibc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/eglibc/Makefile')
-rw-r--r--toolchain/eglibc/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/toolchain/eglibc/Makefile b/toolchain/eglibc/Makefile
index fa8153804..0961e7bca 100644
--- a/toolchain/eglibc/Makefile
+++ b/toolchain/eglibc/Makefile
@@ -7,6 +7,8 @@ include Makefile.inc
include Makefile.multilib
include ${TOPDIR}/mk/buildhlp.mk
+# eglibc does not compile with Os
+TARGET_CFLAGS_LIBC:= $(subst Os,O2,$(TARGET_CFLAGS))
ifneq ($(ADK_DEBUG),)
TARGET_CFLAGS_LIBC+= -O2
endif