Changing flags order for C binaries.

This commit is contained in:
Philippe PITTOLI 2019-11-14 17:49:41 +01:00
parent 664098bd10
commit a176c2bef2

View File

@ -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