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 -- Peter Gerwinski, Essen, Germany, http://home.pages.de/~Peter.Gerwinski/ Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-980830 PGP key on request - 6C 94 45 BE 28 A4 96 - 0E CC E9 12 47 25 82 75 Fight the SPAM and UBE! - http://spam.abuse.net/ - http://maps.vix.com/