summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2007-09-19 21:42:07 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2007-09-19 21:42:07 +0000
commit473cbaae22f2c9bd308874ba1f79cc81739999ca (patch)
tree1fb01ed41c4b81f3370a473138908ef5c02bfd72 /usr.bin
parent591a3e866190ff474de5ea9dcb30b4e71d86a41c (diff)
the missing piece of my commit earlier, cc now calls ccom_<arch>
caught by otto@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/pcc/cc/cc/cc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/pcc/cc/cc/cc.c b/usr.bin/pcc/cc/cc/cc.c
index 540b845966f..ba5d901ace2 100644
--- a/usr.bin/pcc/cc/cc/cc.c
+++ b/usr.bin/pcc/cc/cc/cc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cc.c,v 1.9 2007/09/19 16:08:33 todd Exp $ */
+/* $OpenBSD: cc.c,v 1.10 2007/09/19 21:42:06 todd Exp $ */
/*
* Copyright(C) Caldera International Inc. 2001-2002. All rights reserved.
*
@@ -121,7 +121,7 @@ int nostdinc, nostdlib;
int onlyas;
int pthreads;
-char *pass0 = LIBEXECDIR "/ccom";
+char *pass0;
char *passp = LIBEXECDIR "/cpp";
char *Bflag;
char *cppadd[] = CPPADD;
@@ -365,6 +365,7 @@ main(int argc, char *argv[])
signal(SIGINT, idexit);
if (signal(SIGTERM, SIG_IGN) != SIG_IGN) /* terminate */
signal(SIGTERM, idexit);
+ asprintf(&pass0, "%s%s%s", LIBEXECDIR, "/ccom_", mach);
pvt = pv;
for (i=0; i<nc; i++) {
/*