diff --git a/lfs/glibc b/lfs/glibc index abb8b54bb..802c372a9 100644 --- a/lfs/glibc +++ b/lfs/glibc @@ -49,8 +49,10 @@ else --with-headers=$(TOOLS_DIR)/include \ libc_cv_forced_unwind=yes \ libc_cv_c_cleanup=yes +endif - CFLAGS += -Wno-error=maybe-uninitialized +ifeq "$(BUILD_ARCH)" "aarch64" + CFLAGS += -Wno-error=maybe-uninitialized endif # Disable hardware FP for armv5tel