From: Charl Botha <cpbotha@sun.ac.za>
To: axp-list@redhat.com
Subject: Re: imake/xmkmf on rh5.1 alpha, egcs1.1b
Date: Fri, 25 Sep 1998 12:36:42 +0200 (SAST) [thread overview]
Message-ID: <Pine.LNX.3.96.980925122756.24701B-100000@angst.dsp.sun.ac.za> (raw)
In-Reply-To: <Pine.LNX.3.96.980925121305.24701A-100000@angst.dsp.sun.ac.za>
> This problem will have to be looked into somewhat more...
I really hate replying on my own email but...
I sent a similar diagnosis to the egcs-bug list, someone did reply but my
procmail put it in a funny place. Following is the script I wrote up to
replace /lib/cpp, + a change advised by Manfred Hollstein
<manfred@s-direktnet.de> to solve the problem when the cpp is passed a
file with a non-program or non-header extension. This works for me (if
there's a more effective way, please enlighten me):
------- SNIP
# /lib/cpp replacement;
# <cpbotha@sun.ac.za>, <manfred@s-direktnet.de>
#!/bin/bash
# check if we have a filename on the commandline
for i in $*; do
if [ -f $i ]; then FNBOOL="true"; break; fi
done
# run gcc with parameters so it'll work on files
# with non-program extensions
if [ -z $FNBOOL ]; then
gcc -x c -E $* -
else
gcc -x c -E $*
fi
------- SNIP
Regards,
Charl
---------------------------------------------------------------------------
Charl Botha
E-Mail cpbotha@sun.ac.za
Image Processing and Pattern Recognition
Digital Signal Processing Group <http://dsp.ee.sun.ac.za>
Department of Electronic Engineering
University of Stellenbosch
South Africa
next prev parent reply other threads:[~1998-09-25 10:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-09-23 14:53 imake/xmkmf on rh5.1 alpha, egcs1.1b Charl Botha
1998-09-23 16:40 ` Michal Jaegermann
1998-09-24 3:36 ` Richard Henderson
1998-09-24 9:51 ` Charl Botha
1998-09-24 11:09 ` Jochen Kuepper
1998-09-24 13:36 ` Jeff Sturm
1998-09-24 15:46 ` Michal Jaegermann
1998-09-25 10:18 ` Charl Botha
1998-09-25 10:36 ` Charl Botha [this message]
1998-09-25 16:02 ` Jim Paradis
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox