This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Problem compiling glibc with gcc 2.95.3


>-----Original Message-----
>From: Daniel Jacobowitz [mailto:dmj+@andrew.cmu.edu]
>Sent: 20 March 2001 15:31

>> 1) gcc-2.95.3+ could notice when it was being asked for the internal
>> subprogram 'cpp' and return the result as if it had been 
>asked for 'cpp0'.
>> This is a bit of a nasty hack, as it would fail if someone asked for 
>> the path to cpp and then stripped off the path and appended 
>the filename
>> themselves.
>
>Which, incidentally, is exactly what glibc does:
>rpcgen-cmd = $(built-program-cmd) -Y `$(CC) -print-file-name=cpp | \
>                                      sed 's|/cpp$$||'`

  Ah, thanks for the explanation; sed scripts are pretty impenetrable
to me.

     DaveK
-- 
 All your base are belong to us!


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]