From c71d4adb7f14f754eeebe6e97f934e48913291cc Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 8 Jul 2024 08:54:51 +0900 Subject: [PATCH] avoid specifying multiple lto flags for LIBC_NONLTO_OBJS --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5e0c4781..e0f02452 100644 --- a/Makefile +++ b/Makefile @@ -658,7 +658,7 @@ $(SYSROOT_LIB)/libsetjmp.a: $(LIBSETJMP_OBJS) $(PIC_OBJS): CFLAGS += -fPIC -fvisibility=default -$(LIBC_NONLTO_OBJS): CFLAGS += -fno-lto +$(LIBC_NONLTO_OBJS): CFLAGS := $(filter-out -flto% -fno-lto, $(CFLAGS)) -fno-lto $(MUSL_PRINTSCAN_OBJS): CFLAGS += \ -D__wasilibc_printscan_no_long_double \