shithub: puzzles

Download patch

ref: 8713e2fa8138242df69af501ae8c9c4dc0358d74
parent: 3e0822228aa4f5676b40e3911aa659676f6f4f48
author: Simon Tatham <anakin@pobox.com>
date: Sat Apr 23 07:37:46 EDT 2011

Support user-specified extra link flags (XLFLAGS) in the Unix
makefile. Makes it easy to recompile for things like profiling.

[originally from svn r9154]

--- a/mkfiles.pl
+++ b/mkfiles.pl
@@ -1137,7 +1137,7 @@
       $objstr = &objects($p, "X.o", undef, undef);
       print &splitline($prog . ": " . $objstr), "\n";
       $libstr = &objects($p, undef, undef, "-lX");
-      print &splitline("\t\$(CC) -o \$@ $objstr $libstr \$(${type}LIBS)", 69),
+      print &splitline("\t\$(CC) -o \$@ $objstr $libstr \$(XLFLAGS) \$(${type}LIBS)", 69),
 	  "\n\n";
     }
     foreach $d (&deps("X.o", undef, $dirpfx, "/")) {