1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Revice the way the CTF conversion is done per object. Avoid creating a second

shell (which was the problem with the original implementation) and avoid
letting make see an empty definition (which was the problem with the current
implementation).
This commit is contained in:
John Birrell 2008-06-29 07:15:57 +00:00
parent 2ce7b410dc
commit 4287da9afb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180089

View File

@ -735,7 +735,7 @@ do_rules(FILE *f)
printf("config: don't know rules for %s\n", np);
break;
}
snprintf(cmd, sizeof(cmd), "${%s_%c%s}\n\t${NORMAL_CTFCONVERT}", ftype,
snprintf(cmd, sizeof(cmd), "${%s_%c%s}\n.if defined(NORMAL_CTFCONVERT) && !empty(NORMAL_CTFCONVERT)\n\t${NORMAL_CTFCONVERT}\n.endif", ftype,
toupper(och),
ftp->f_flags & NOWERROR ? "_NOWERROR" : "");
compilewith = cmd;