third-party toolchain issues

  1. prefix is not honored by some symlinks

bzcmp -> /opt/vesoft/third-party/bin/bzdiff
bzegrep -> /opt/vesoft/third-party/bin/bzgrep
bzfgrep -> /opt/vesoft/third-party/bin/bzgrep
bzless -> /opt/vesoft/third-party/bin/bzmore

  1. glibc is not shipped together and dynamic-linker is always pointed to /lib64/

This breaks flex at least.

patchelf can be used to modify PT_INTERP segment but linux kernel doesn’t allow relative path in it. So it’s better to have a post hook running patchelf when bootstrapping the thirdparty directory.

Sorry I’m not understand what you mean