Edited ldflags order.

This commit is contained in:
Luka Vandervelden 2022-01-09 18:55:47 +01:00
parent 971ba41c1b
commit e2c0033683

View File

@ -20,9 +20,9 @@ function binary.build {
done
write " ${depends[$target]} $(dirdep $target)"
write "\t@echo '$(LD ${target})'"
write -n "\t$Q\$(CC) -o ${target}"
write -n "${ldflags[$target]}"
write -n " ${src[@]//.c/.o} \$(LDFLAGS)"
write -n "\t$Q\$(CC) -o ${target} \$(LDFLAGS)"
write -n " ${src[@]//.c/.o}"
write " ${ldflags[$target]}"
write
for i in ${src[@]}; do