Arnaud Charlet wrote:
LIBGNAT=../rts/libgnat.a GCC_LINK="$(CC) -static-libgcc $(ADA_INCLUDES)"
+TOOL_CC=$(CC) -static-libgcc


I'd rather avoid code duplication and reuse GCC_LINK if possible, or
split GCC_LINK in two if needed.

I thought so too, and indeed tried it this way at first, but got:
"../../xgcc -B../../ -static-libgcc -I- -I../rts -I. -I/Users/peter/cvsco.build/gcc-4.1/gcc-4_1-branch/gcc/ada" -DIN_GCC....
....
/bin/sh: line 1: ../../xgcc -B../../ -static-libgcc -I- -I../rts -I. -I/Users/peter/cvsco.build/gcc-4.1/gcc-4_1-branch/gcc/ada: No such file or directory

The quotes around GCC_LINK could be removed here and instead put in the the -GCC=$(GCC_LINK) bits, but it seemed easier to have a new var.

Peter

Reply via email to