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