diff options
Diffstat (limited to '.link-library.do')
-rwxr-xr-x | .link-library.do | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/.link-library.do b/.link-library.do index 09aaf90..7a7aad2 100755 --- a/.link-library.do +++ b/.link-library.do @@ -3,10 +3,6 @@ redo-ifchange .config.rc . ./.config.rc exec >"$3" echo "# generated by $0" -echo "CC=$CC" -echo "LDFLAGS=(${LDFLAGS[@]@Q} -shared)" -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 +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 |