File Makefile.patch of Package crafty

Index: Makefile
===================================================================
--- Makefile.orig
+++ Makefile
@@ -77,7 +77,7 @@ quick:
 	$(MAKE) target=UNIX \
 		CC=clang \
  		opt='-DSYZYGY -DTEST -DTRACE -DCPUS=4' \
-		CFLAGS='-mpopcnt -Wall -Wno-array-bounds -pipe -O3' \
+		CFLAGS='$(CFLAGSS) -mpopcnt -Wall -Wno-array-bounds -pipe -O3' \
 		LDFLAGS='$(LDFLAGS) -lstdc++' \
 		crafty-make
 
@@ -85,7 +85,7 @@ unix-gcc:
 	$(MAKE) -j target=UNIX \
 		CC=gcc \
 		opt='-DSYZYGY -DTEST -DCPUS=4' \
-		CFLAGS='-Wall -Wno-array-bounds -pipe -O3 -fprofile-use \
+		CFLAGS='$(CFLAGSS) -Wall -Wno-array-bounds -pipe -O3 -fprofile-use \
 		-mpopcnt -fprofile-correction -pthread' \
 		LDFLAGS='$(LDFLAGS) -fprofile-use -pthread -lstdc++' \
 		crafty-make
@@ -94,7 +94,7 @@ unix-gcc-profile:
 	$(MAKE) -j target=UNIX \
 		CC=gcc \
 		opt='-DSYZYGY -DTEST -DCPUS=4' \
-		CFLAGS='-Wall -Wno-array-bounds -pipe -O3 -fprofile-arcs \
+		CFLAGS='$(CFLAGSS) -Wall -Wno-array-bounds -pipe -O3 -fprofile-arcs \
 		-mpopcnt -pthread' \
 		LDFLAGS='$(LDFLAGS) -fprofile-arcs -pthread -lstdc++ ' \
 		crafty-make
@@ -104,7 +104,7 @@ unix-clang:
 	$(MAKE) -j target=UNIX \
 		CC=clang \
 		opt='-DSYZYGY -DTEST -DCPUS=4' \
-		CFLAGS='-Wall -Wno-array-bounds -pipe -O3 \
+		CFLAGS='$(CFLAGSS) -Wall -Wno-array-bounds -pipe -O3 \
 			-mpopcnt -fprofile-instr-use=crafty.profdata' \
 		LDFLAGS='$(LDFLAGS) -fprofile-use -lstdc++' \
 		crafty-make
@@ -113,7 +113,7 @@ unix-clang-profile:
 	$(MAKE) -j target=UNIX \
 		CC=clang \
 		opt='-DSYZYGY -DTEST -DCPUS=4' \
-		CFLAGS='-Wall -Wno-array-bounds -pipe -O3 \
+		CFLAGS='$(CFLAGSS) -Wall -Wno-array-bounds -pipe -O3 \
 			-mpopcnt -fprofile-instr-generate' \
 		LDFLAGS='$(LDFLAGS) -fprofile-instr-generate -lstdc++ ' \
 		crafty-make
@@ -122,7 +122,7 @@ unix-icc:
 	$(MAKE) -j target=UNIX \
 		CC=icc \
 		opt='-DSYZYGY -DTEST -DCPUS=4' \
-		CFLAGS='-Wall -w -O2 -prof_use -prof_dir ./prof -fno-alias \
+		CFLAGS='$(CFLAGSS) -Wall -w -O2 -prof_use -prof_dir ./prof -fno-alias \
                         -mpopcnt -pthread' \
 		LDFLAGS='$(LDFLAGS) -pthread -lstdc++' \
 		crafty-make
@@ -131,7 +131,7 @@ unix-icc-profile:
 	$(MAKE) -j target=UNIX \
 		CC=icc \
 		opt='-DSYZYGY -DTEST -DCPUS=4' \
-		CFLAGS='-Wall -w -O2 -prof_gen -prof_dir ./prof -fno-alias \
+		CFLAGS='$(CFLAGSS) -Wall -w -O2 -prof_gen -prof_dir ./prof -fno-alias \
                         -mpopcnt -pthread' \
 		LDFLAGS='$(LDFLAGS) -pthread -lstdc++ ' \
 		crafty-make
@@ -186,7 +186,7 @@ crafty-make:
 crafty.o: *.c *.h
 
 crafty:	$(objects)
-	$(CC) $(LDFLAGS) -g -o crafty $(objects) -lm  $(LIBS)
+	$(CC) -o crafty -g $(objects) -lm $(LDFLAGS) $(LIBS)
 
 evaluate.o: evaluate.h
 
openSUSE Build Service is sponsored by