- ln -f -s clang-${_PKG_MAJOR_VERSION} clang
- ln -f -s clang-${_PKG_MAJOR_VERSION} clang++
- ln -f -s clang-${_PKG_MAJOR_VERSION} cc
- ln -f -s clang-${_PKG_MAJOR_VERSION} c++
-
- ln -f -s clang-${_PKG_MAJOR_VERSION} gcc
- ln -f -s clang-${_PKG_MAJOR_VERSION} g++
- ln -f -s clang-${_PKG_MAJOR_VERSION} ${TERMUX_HOST_PLATFORM}-gcc
- ln -f -s clang-${_PKG_MAJOR_VERSION} ${TERMUX_HOST_PLATFORM}-g++
+ for tool in clang clang++ cc c++ cpp gcc g++ ${TERMUX_HOST_PLATFORM}-{gcc,g++,cpp}; do
+ ln -f -s clang-${_PKG_MAJOR_VERSION} $tool
+ done