From owner-freebsd-current Fri Mar 12 14: 8:25 1999 Delivered-To: freebsd-current@freebsd.org Received: from tick.ssec.wisc.edu (tick.ssec.wisc.edu [144.92.108.121]) by hub.freebsd.org (Postfix) with ESMTP id 1550F14CCA for ; Fri, 12 Mar 1999 14:08:22 -0800 (PST) (envelope-from dglo@tick.ssec.wisc.edu) Received: from tick.ssec.wisc.edu (localhost [127.0.0.1]) by tick.ssec.wisc.edu (8.8.7/8.8.7) with ESMTP id QAA18006; Fri, 12 Mar 1999 16:07:54 -0600 (CST) From: Dave Glowacki Message-Id: <199903122207.QAA18006@tick.ssec.wisc.edu> To: Doug Rabson Cc: "David O'Brien" , Brian Feldman , current@freebsd.org Subject: Re: bmake/contrib framework for egcs In-reply-to: Your message of "Fri, 12 Mar 1999 21:37:17 GMT." Date: Fri, 12 Mar 1999 16:07:53 -0600 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Doug Rabson wrote: > On Fri, 12 Mar 1999, David O'Brien wrote: > > > > Hmm.... environment variables? > > > > That is my guess.. but I don't know an easy way to printout the entire > > environtment a program sees. > > How about hacking cpp so that it does 'system("env > /tmp/somefile")' as > the first thing. I like to move the executable to 'cpp.bin' then create a shell script name 'cpp' that does something like: env > /tmp/cpp-env.$$ exec cpp.bin "$@" You can even have it start 'gdb' from within the script, if you really want to... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message