aboutsummaryrefslogtreecommitdiffstats
path: root/.link-executable.do
blob: 6d9b89b5539bad932a1dc54f5d76d7e99c5e9f8d (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash
set -e
redo-ifchange .vars.rc
. ./.vars.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