1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Fix use of LDFLAGS in Makefile.ux.

Same idea as commit 68b1933326 for Makefile.gtk.
This commit is contained in:
Jacob Nevins 2019-01-01 13:38:05 +00:00
parent 25b034ee39
commit b6f296a17a

View File

@ -1523,11 +1523,12 @@ if (defined $makefiles{'unix'}) {
print "\n\n";
foreach $p (&prognames("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, "/", "unix")) {
if ($forceobj{$d->{obj_orig}}) {