From 13ab608a4bb4b6093c6095a2a0b975a3572855c2 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Sat, 12 Sep 2020 00:50:29 +0100 Subject: build: Fix flag passing to the linker and compiler. --- default.o.do | 2 +- link | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/default.o.do b/default.o.do index 9135cb8..5c3e0e9 100644 --- a/default.o.do +++ b/default.o.do @@ -1,5 +1,5 @@ #!/bin/bash redo-ifchange "$0" "default.o.do" "$2.c" . loadargs "compile" -gcc -std=c11 -MD -MF "$2.d" -c -o "$3" "${args[@]}" "$2.c" +gcc -std=c11 -MD -MF "$2.d" -c "${args[@]}" -o "$3" "$2.c" redo-ifchange "$2.d" $(sed ':a;/\\$/{s/[^:]*: //;N;s/ \\\n//;ba}' <"$2.d") diff --git a/link b/link index 2b99b87..08006ad 100644 --- a/link +++ b/link @@ -1,4 +1,4 @@ #/fake/bash redo-ifchange "$0" "link" "${deps[@]}" . loadargs "link" -gcc -o "$3" "${deps[@]}" +gcc "${args[@]}" -o "$3" "${deps[@]}" -- cgit v1.2.3-54-g00ecf