moved LNKER_ARGS to the end of command

This commit is contained in:
timerix 2023-03-31 16:52:16 +06:00
parent d72aa0c809
commit 2bebe76c7e
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
+ added task `sanitize`
+ default C++ standard set to `c++11`
+ added `INCLUDE` to `default.config`
+ moved `LINKER_ARGS` to the end of linkage command in `functions.sh` to properly link static libs
# v5
+ added task `clean`

View File

@ -80,7 +80,7 @@ function link {
local objects="$(find $OBJDIR/objects -name '*.o')
$(find $OBJDIR/libs -name '*.a')"
myprint "${BLUE}objects: ${GRAY}$objects"
local command="$CMP_CPP $args $(echo "$objects" | tr '\n' ' ') -o $OBJDIR/out/$outfile"
local command="$CMP_CPP $(echo "$objects" | tr '\n' ' ') $args -o $OBJDIR/out/$outfile"
myprint "$command"
if $command
then