Index: head/games/crafty/files/patch-Makefile =================================================================== --- head/games/crafty/files/patch-Makefile (revision 461317) +++ head/games/crafty/files/patch-Makefile (revision 461318) @@ -1,15 +1,19 @@ ---- Makefile.orig 2016-10-03 22:11:34.000000000 +0200 -+++ Makefile 2017-07-15 23:47:33.427574000 +0200 -@@ -83,9 +83,9 @@ quick: +--- Makefile.orig 2016-10-03 20:11:34 UTC ++++ Makefile +@@ -83,11 +83,11 @@ quick: unix-gcc: $(MAKE) -j target=UNIX \ - CC=gcc \ - opt='-DSYZYGY -DTEST -DCPUS=4' \ - CFLAGS='-Wall -Wno-array-bounds -pipe -O3 -fprofile-use \ +- -mpopcnt -fprofile-correction -pthread' \ +- LDFLAGS='$(LDFLAGS) -fprofile-use -pthread -lstdc++' \ + CC=$(CC) \ + opt='$(opt) -DSYZYGY -DTEST -DCPUS=4' \ -+ CFLAGS='$(CFLAGS) -Wall -Wno-array-bounds -pipe -O3 -fprofile-use \ - -mpopcnt -fprofile-correction -pthread' \ - LDFLAGS='$(LDFLAGS) -fprofile-use -pthread -lstdc++' \ ++ CFLAGS='$(CFLAGS) -Wall -Wno-array-bounds -pipe -O3 \ ++ -mpopcnt -pthread' \ ++ LDFLAGS='$(LDFLAGS) -pthread -lstdc++' \ crafty-make + + unix-gcc-profile: Index: head/games/crafty/files/patch-option.c =================================================================== --- head/games/crafty/files/patch-option.c (revision 461317) +++ head/games/crafty/files/patch-option.c (revision 461318) @@ -1,15 +1,15 @@ ---- option.c.orig 2016-10-28 05:11:42.000000000 +0200 -+++ option.c 2017-07-15 23:35:58.863941000 +0200 +--- option.c.orig 2016-10-28 03:11:42 UTC ++++ option.c @@ -978,9 +978,11 @@ int Option(TREE * RESTRICT tree) { else if (OptionMatch("help", *args)) { FILE *helpfile; char *readstat = (char *) -1; + char fname[128]; int lines = 0; - helpfile = fopen("crafty.hlp", "r"); + sprintf(fname, "%s/crafty.hlp", book_path); + helpfile = fopen(fname, "r"); if (!helpfile) { printf("ERROR. Unable to open \"crafty.hlp\" -- help unavailable\n"); return 1;