Skip to content

Commit

Permalink
avoid specifying multiple lto flags for LIBC_NONLTO_OBJS
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Jul 7, 2024
1 parent 062f80e commit c71d4ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit c71d4ad

Please sign in to comment.