mirror of
https://github.com/cc65/cc65.git
synced 2025-01-26 17:36:57 +00:00
Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@2875 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
51aec21c23
commit
4106dfd526
@ -288,13 +288,13 @@ static void SetTargetFiles (void)
|
||||
|
||||
/* Set the startup file */
|
||||
TargetCRT0 = xmalloc (TargetNameLen + 2 + 1);
|
||||
strcpy (TargetCRT0, TargetName);
|
||||
strcat (TargetCRT0, ".o");
|
||||
memcpy (TargetCRT0, TargetName, TargetNameLen);
|
||||
strcpy (TargetCRT0 + TargetNameLen, ".o");
|
||||
|
||||
/* Set the library file */
|
||||
TargetLib = xmalloc (TargetNameLen + 4 + 1);
|
||||
strcpy (TargetLib, TargetName);
|
||||
strcat (TargetLib, ".lib");
|
||||
memcpy (TargetLib, TargetName, TargetNameLen);
|
||||
strcpy (TargetLib + TargetNameLen, ".lib");
|
||||
|
||||
}
|
||||
}
|
||||
@ -349,7 +349,7 @@ static void Link (void)
|
||||
CmdAddArg2 (&LD65, "-C", LinkerConfig);
|
||||
} else if (Module) {
|
||||
CmdSetTarget (&LD65, TGT_MODULE);
|
||||
} else if (Target != TGT_NONE) {
|
||||
} else {
|
||||
CmdSetTarget (&LD65, Target);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user