Mail Archives: cygwin-developers/1998/09/15/08:29:22
> 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).
- Raw text -