aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2011-04-23 11:37:46 +0000
committerSimon Tatham <anakin@pobox.com>2011-04-23 11:37:46 +0000
commit8713e2fa8138242df69af501ae8c9c4dc0358d74 (patch)
tree312e22f96d10fd95cb69e15adc373dfa7e0235f2
parent3e0822228aa4f5676b40e3911aa659676f6f4f48 (diff)
downloadpuzzles-8713e2fa8138242df69af501ae8c9c4dc0358d74.zip
puzzles-8713e2fa8138242df69af501ae8c9c4dc0358d74.tar.gz
puzzles-8713e2fa8138242df69af501ae8c9c4dc0358d74.tar.bz2
puzzles-8713e2fa8138242df69af501ae8c9c4dc0358d74.tar.xz
Support user-specified extra link flags (XLFLAGS) in the Unix
makefile. Makes it easy to recompile for things like profiling. [originally from svn r9154]
-rwxr-xr-xmkfiles.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkfiles.pl b/mkfiles.pl
index 541a44d..5bb0d39 100755
--- a/mkfiles.pl
+++ b/mkfiles.pl
@@ -1137,7 +1137,7 @@ if (defined $makefiles{'gtk'}) {
$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, "/")) {