aboutsummaryrefslogtreecommitdiffstats
path: root/.link-executable.do
diff options
context:
space:
mode:
Diffstat (limited to '.link-executable.do')
-rwxr-xr-x.link-executable.do8
1 files changed, 2 insertions, 6 deletions
diff --git a/.link-executable.do b/.link-executable.do
index 4d7abdd..bb3dea6 100755
--- a/.link-executable.do
+++ b/.link-executable.do
@@ -3,10 +3,6 @@ redo-ifchange .config.rc
. ./.config.rc
exec >"$3"
echo "# generated by $0"
-echo "CC=$CC"
-echo "LDFLAGS=(${LDFLAGS[@]@Q})"
-echo "LDLIBS=(${LDLIBS[@]@Q})"
+declare -p CC LDFLAGS LDLIBS
echo '"$CC" "${LDFLAGS[@]}" "${objects[@]}" "${LDLIBS[@]}" -o "$3"'
-if command -v redo-stamp >/dev/null 2>&1; then
- redo-stamp <"$3"
-fi
+if command -v redo-stamp &>/dev/null; then redo-stamp <"$3"; fi