]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix Makefile.gtk in the wake of the new [XT] program type.
authorSimon Tatham <anakin@pobox.com>
Fri, 25 Mar 2016 09:10:50 +0000 (09:10 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 25 Mar 2016 09:10:50 +0000 (09:10 +0000)
It's not the recommended makefile any more, but it's not too hard
to keep it working for the moment.

mkfiles.pl

index b031af8fa6bb6560fd1f5a759c279b72677c97c0..97c39284c7e9a3283aeaad3831c7df29e3cdb362 100755 (executable)
@@ -1398,11 +1398,12 @@ if (defined $makefiles{'gtk'}) {
     print "\n\n";
     foreach $p (&prognames("X:XT:U:UT")) {
       ($prog, $type) = split ",", $p;
+      ($ldflags = $type) =~ s/T$//;
       $objstr = &objects($p, "X.o", undef, undef);
       print &splitline($prog . ": " . $objstr), "\n";
       $libstr = &objects($p, undef, undef, "-lX");
       print &splitline("\t\$(CC) -o \$@ " .
-                       $objstr . " \$(${type}LDFLAGS) $libstr", 69), "\n\n";
+                       $objstr . " \$(${ldflags}LDFLAGS) $libstr", 69), "\n\n";
     }
     foreach $d (&deps("X.o", undef, $dirpfx, "/", "gtk")) {
       if ($forceobj{$d->{obj_orig}}) {