From 081bbc17b6306d62449b08634d88106ccdad3d05 Mon Sep 17 00:00:00 2001 From: jb Date: Sun, 29 Jun 2008 07:15:57 +0000 Subject: 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). --- usr.sbin/config/mkmakefile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/config/mkmakefile.c') diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c index 7976fcf..b6f1f18 100644 --- a/usr.sbin/config/mkmakefile.c +++ b/usr.sbin/config/mkmakefile.c @@ -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; -- cgit v1.1