X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=9650c7f615d39fbca602894ba32075306650f93a;hp=6a47b177e07b14b0e8e8b0f0bb3a0633dfdb156c;hb=9b6b510ca80fcc3c623dad9a34839b1235f628f2;hpb=325dedc7da98cb530e2f758894ac49ac1befef0f diff --git a/src/Makefile b/src/Makefile index 6a47b177..9650c7f6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -315,7 +315,7 @@ ifeq ($(popcnt),yes) ### needs access to the optimization flags. ifeq ($(comp),gcc) CXXFLAGS += -msse3 -flto - LDFLAGS += $(CXXFLAGS) -static + LDFLAGS += $(CXXFLAGS) endif endif @@ -385,7 +385,7 @@ profile-build: $(MAKE) ARCH=$(ARCH) COMP=$(COMP) $(profile_make) @echo "" @echo "Step 2/4. Running benchmark for pgo-build ..." - @$(PGOBENCH) > /dev/null + @sleep 10 | $(PGOBENCH) > /dev/null @echo "" @echo "Step 3/4. Building final executable ..." @touch *.cpp @@ -405,14 +405,14 @@ double-profile-build: $(MAKE) ARCH=x86-64 COMP=$(COMP) $(profile_make) @echo "" @echo "Step 2/6. Running benchmark for pgo-build (popcnt disabled)..." - @$(PGOBENCH) > /dev/null + @sleep 10 | $(PGOBENCH) > /dev/null @echo "" @echo "Step 3/6. Building executable for benchmark (popcnt enabled)..." @touch *.cpp *.h $(MAKE) ARCH=x86-64-modern COMP=$(COMP) $(profile_make) @echo "" @echo "Step 4/6. Running benchmark for pgo-build (popcnt enabled)..." - @$(PGOBENCH) > /dev/null + @sleep 10 | $(PGOBENCH) > /dev/null @echo "" @echo "Step 5/6. Building final executable ..." @touch *.cpp *.h @@ -492,6 +492,7 @@ gcc-profile-make: gcc-profile-use: $(MAKE) ARCH=$(ARCH) COMP=$(COMP) \ EXTRACXXFLAGS='-fprofile-use' \ + EXTRALDFLAGS='-lgcov' \ all gcc-profile-clean: