Mail Archives: cygwin-developers/1998/09/15/05:50:05
On Tue, Sep 15, 1998 at 03:45:34PM +1000, Trevor Yann wrote:
>I had a little trouble building the latest snapshot.
>
>The makefile in the winsup directory contains:
>
>LIBGCC=${shell $(CC_FOR_TARGET) -print-libgcc-file-name}
>
>Unfortunately the gcc that I am using (Mumit's egcs 1.02) prints the
>following for the libgcc filename:
>
>D:\CYGNUS\B19\H-I386~1\lib\gcc-lib\i386-cygwin32\egcs-2.90.27\libgcc.a
>
>Note the backslashes, which are later interpreted as part of an escape
>sequence.
>
>
>I changed the setting in the makefile to:
>
>LIBGCC=${shell $(CC_FOR_TARGET) -print-libgcc-file-name | sed 's,\\,/,g'}
>
>This fixed the problem, but I am not sure whether this is a correct fix or
>whether it should even be necessary.
It is necessary. Sorry about that. That was the standard "last minute
change before the release". I hadn't tried a native build subsequent to
that change.
Anyway, I was trying to avoid multiple calls of gcc/shell. Does this
work any better?
LIBGCC:=${subst \\,/,${shell $(CC_FOR_TARGET) -print-libgcc-file-name}}
I can't test it right now, but it should work.
--
cgf AT cygnus DOT com
http://www.cygnus.com/
- Raw text -