Maurice Lombardi wrote:
Frank Heckenbach a écrit:
I've uploaded a new alpha version.
I had some problems when compiling the utils stuff with djgpp/gcc-2.95.3 The reason was that GPC_FOR_TARGET was overriden from top level makefile by
c:/djgpp/b/gnu/gcc-2.953/build.djg/gcc/xgpc -Bc:/djgpp/b/gnu/gcc-2.953/build.djg/gcc/ -Bc:/djgpp/i586-pc-msdosdjgpp/bin/
Applying GCC2GPC gives c:/djgpp/b/gnu/gcc-2.953/build.djg/gpc/xgpc -B ... ^ and the needed -I./p/rts is lost
The following diff solved the problem for me (take care to unwanted line wrappings):
[...]
+ADD_RTS_DIR=sed -e 's,$$, -I./p/rts ,'
- PC="`if [ x"$(GPC_HOST)" = x"$(target)" ]; then echo $(GPC_FOR_TARGET)' '; else echo $(CC)' '; fi
| $(ADD_RTS_PARENT_DIR) | $(GCC2GPC)`" \
- PC="`if [ x"$(GPC_HOST)" = x"$(target)" ]; then echo $(GPC_FOR_TARGET)' '; else echo $(CC) |
$(GCC2GPC); fi | $(ADD_RTS_DIR) | $(ADD_RTS_PARENT_DIR)`" \
but I have no possibility to check the case host <> target
Seems to work (with a slight modification), thanks.
Frank