aboutsummaryrefslogtreecommitdiffstats
path: root/.link-executable.do
blob: bb3dea67eaf859f2683657f3fb792b4fed1977aa (plain)
1
2
3
4
5
6
7
8
#!/bin/bash -e
redo-ifchange .config.rc
. ./.config.rc
exec >"$3"
echo "# generated by $0"
declare -p CC LDFLAGS LDLIBS
echo '"$CC" "${LDFLAGS[@]}" "${objects[@]}" "${LDLIBS[@]}" -o "$3"'
if command -v redo-stamp &>/dev/null; then redo-stamp <"$3"; fi