]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Set the executable fragment name (in CFM builds) to the name of the target
authorBen Harris <bjh21@bjh21.me.uk>
Sun, 23 Feb 2003 13:42:34 +0000 (13:42 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Sun, 23 Feb 2003 13:42:34 +0000 (13:42 +0000)
pgram, rather than to "PuTTY" unconditionally.

[originally from svn r2883]

mkfiles.pl

index 74e77a8fd87fe76ceb088eb8103ff686cfec0bae..63cbe0ecab954241b4dd8d3d5ccc93585e474ac7 100755 (executable)
@@ -623,7 +623,7 @@ Link_CFM68K = ILink
 Link_PPC = PPCLink
 Link_Carbon = PPCLink
 
-LinkOptions = -c 'pTTY' -fragname PuTTY
+LinkOptions = -c 'pTTY'
 LinkOptions_68K = {LinkOptions} -br 68k -model far -compact
 LinkOptions_CFM68K = {LinkOptions} -br 020 -model cfmseg -compact
 LinkOptions_PPC = {LinkOptions}
@@ -692,7 +692,8 @@ foreach $p (&prognames("M")) {
       print &splitline("$prog.\L$arch\E \xc4 $objstr $rsrc", undef, "\xb6");
       print "\n";
       print &splitline("\tDuplicate -y $rsrc {Targ}", 69, "\xb6"), "\n";
-      print &splitline("\t{Link_$arch} -o {Targ} {LinkOptions_$arch} " .
+      print &splitline("\t{Link_$arch} -o {Targ} -fragname $prog " .
+                      "{LinkOptions_$arch} " .
                       $objstr . " {Libs_$arch}", 69, "\xb6"), "\n";
       print &splitline("\tSetFile -a BMi {Targ}", 69, "\xb6"), "\n\n";
   }