#!/bin/sh -x cat << __EOF__ > test.c #include static inline long lroundevenf(float x) { return lrintf(x); } int main() { } __EOF__ gcc -o test test.c rm -f test mkdir -p $(pwd)/bin [ -f /usr/bin/ld.lld ] || ( echo "lld not found"; exit 1) ln -sf /usr/bin/ld.lld $(pwd)/bin/ld export PATH=$(pwd)/bin:$PATH gcc -o test test.c -Wl,--verbose echo "add -L/lib" gcc -o test test.c -L/lib -Wl,--verbose