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