tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

HAVE_PCC=yes



Hi,

I was trying to build.sh tools with HAVE_PCC=yes but find that the
following construct in external/bsd/pcc/dist/pcc/cc/Makefile.in causes the
installation to fail with no such directory (for cpp)

install:
        cd cc && ${MAKE} install
        cd cpp && ${MAKE} install
        cd ccom && ${MAKE} install

I traced this to (I think) the tools framework using the -j flag with
nbmake which causes all the commands to be executed in the same shell,
rather than starting a new context for each command.

It is normally possible to add -B to the make flags which prevents this
happening, but tools/Makefile.gnuwrap is blocking MAKE_ARGS being passed
to the subdirs and I can't find a way to get it through. I fixed it here
by changing the Makefile.in to read

install:
        cd cc && ${MAKE} install && cd ..
        cd cpp && ${MAKE} install && cd ..
        cd ccom && ${MAKE} install && cd ..

which shouldn't hurt in the case where they are executed separately, but
will help if they are lumped together as in this case..

Ultimately, pcc should probably use Makefile.am files to generate the
Makefile.in rather than the manually built versions they are using now but
in the meantime thats the only way I can get it to build as part of
tools..

Any suggestions for a better method?

iain




Home | Main Index | Thread Index | Old Index