Skip to content

Commit c949fc0

Browse files
committed
Add --icf=safe
1 parent f90825b commit c949fc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pgo-lto/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ stage1: | $(STAGE1_BUILD)
4242
4343
stage2: export CFLAGS=-fprofile-use=$(PROFILE_FILE)
4444
stage2: export CXXFLAGS=-fprofile-use=$(PROFILE_FILE)
45-
stage2: export LDFLAGS=-fuse-ld=lld -flto=thin -fprofile-use=$(PROFILE_FILE)
45+
stage2: export LDFLAGS=-fuse-ld=lld -flto=thin -fprofile-use=$(PROFILE_FILE) -Wl,--icf=safe
4646
stage2: $(PROFILE_FILE) | $(STAGE2_BUILD)
4747
$(MAKE) -C $(STAGE2_BUILD) && touch $@
4848

0 commit comments

Comments
 (0)