Hi!
Niels Kristian Bech Jensen wrote:
I've built gpc-19980830 with egcs-1.1.1 using gcc-egcs-2.91.55.diff and the patch below. This patch ensures that -DEGCS is added to CFLAGS if gpc is built with egcs.
Great! (-8
There is only one problem:
+is_egcs := $(shell if $(CC) --version | grep 'egcs' > /dev/null; then echo y; else echo n; fi)
This checks whether the EGCS compiler is used to compile GPC, not whether the EGCS source is used as the GPC backend. But never mind: We can use
+is_egcs := $(shell if cat $(srcdir)/version.c | grep 'egcs' > /dev/null; then echo y; else echo n; fi)
instead.
Thanks, (-:
Peter