#!/bin/sh
#git -C glibc-2.39-checkout diff > fallback.patch
outputs=$(guix build glibc@2.39 --with-patch=glibc@2.39=fallback.patch -c64)
for output in $outputs; do
    if [ -f $output/lib/ld-linux-x86-64.so.2 ]; then
        install -m744 $output/lib/ld-linux-x86-64.so.2 .
        chmod +x ld-linux-x86-64.so.2
        break
    fi
done
