X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=mkfiles.pl;h=46ae3189985639de744429c174763db9a6203e88;hb=15386cbe927fc85ac2fed0bb47704645c4b67dad;hp=b031af8fa6bb6560fd1f5a759c279b72677c97c0;hpb=1af3bd927f12334c5417f6ac1f56687e0f68f764;p=PuTTY.git diff --git a/mkfiles.pl b/mkfiles.pl index b031af8f..46ae3189 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -1357,7 +1357,7 @@ if (defined $makefiles{'gtk'}) { "# building with GTK 1.2, or you can set it to `pkg-config gtk+-2.0 x11'\n". "# if you want to enforce 2.0. The default is to try 2.0 and fall back\n". "# to 1.2 if it isn't found.\n". - "GTK_CONFIG = sh -c 'pkg-config gtk+-2.0 x11 \$\$0 2>/dev/null || gtk-config \$\$0'\n". + "GTK_CONFIG = sh -c 'pkg-config gtk+-3.0 x11 \$\$0 2>/dev/null || pkg-config gtk+-2.0 x11 \$\$0 2>/dev/null || gtk-config \$\$0'\n". "\n". "-include Makefile.local\n". "\n". @@ -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}}) {