From a176c2bef2330f18cb7dc9d296d1193985c828e7 Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Thu, 14 Nov 2019 17:49:41 +0100 Subject: [PATCH] Changing flags order for C binaries. --- build/binary.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/binary.zsh b/build/binary.zsh index ac70975..0c532aa 100644 --- a/build/binary.zsh +++ b/build/binary.zsh @@ -6,9 +6,9 @@ function binary.build { done write " ${depends[$target]} $(dirdep $target)" write "\t@echo '$(LD ${target})'" - write -n "\t$Q\$(CC) -o ${target} \$(LDFLAGS)" - write -n " ${src[@]//.c/.o}" - write " ${ldflags[$target]}" + write -n "\t$Q\$(CC) -o ${target}" + write -n "${ldflags[$target]}" + write -n " ${src[@]//.c/.o} \$(LDFLAGS)" write for i in ${src[@]}; do