I noticed a few problems that exist when building Pike using bundles. I'm not very familiar with how that all works, so I thought I'd report them here in the hope that someone more comfortable with making changes to this can take a closer look:
1. If you specify an ABI that isn't the "default" for a given system using --with-abi, the ABI specific compiler flags don't seem to be passed on to any subsequent bundles. Thus, you get all kinds of problems with mismatched abis when trying to link. A temporary workaround seems to be to define CFLAGS and pass them in for the whole build process.
2. A problem specific to Nettle seems to be that there's a small c++ test program that gets built as part of the Nettle bundle. When building for a non-default ABI, this test program can't link against the built library, causing the whole bundle to fail. A temporary workaround seems to be to define CXXFLAGS and pass these flags (such as -m32) as part of the overall build process.
Bill