From b6f296a17a29fe53e4712a9d2db7cbcdf833ed9b Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Tue, 1 Jan 2019 13:38:05 +0000 Subject: [PATCH] Fix use of LDFLAGS in Makefile.ux. Same idea as commit 68b1933326 for Makefile.gtk. --- mkfiles.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mkfiles.pl b/mkfiles.pl index 2d497e54..de68fd0e 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -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}}) {