It wants pthreads, and libpthreads wants libdl, and this can only be found with -rpath-link when cross building.