Mail Archives: cygwin-developers/1998/09/15/06:14:01
On Tue, Sep 15, 1998 at 08:29:22AM -0400, DJ Delorie wrote:
>> LIBGCC=${shell $(CC_FOR_TARGET) -print-libgcc-file-name}
>> D:\CYGNUS\B19\H-I386~1\lib\gcc-lib\...
>
>DJGPP had the same problem. What I ended up doing was this:
>
>ifeq ($(LIBGCCA),)
>LIBGCCA := $(shell $(CROSS_GCC) -print-file-name=libgcc.a)
>LIBGCCA := $(subst \,/,$(LIBGCCA))
>export LIBGCCA
>endif
>
>This also reduced the number of times gcc had to be called during a
>build, but relies on GNU make, which I don't think we can do for
>cygwin (might be cross-built from a gmake-less machine).
The makefile already had gnumake-isms so I figured it was safe.
--
cgf AT cygnus DOT com
http://www.cygnus.com/
- Raw text -