From 2bebe76c7e14155392a167bdda61113d0039e188 Mon Sep 17 00:00:00 2001 From: timerix Date: Fri, 31 Mar 2023 16:52:16 +0600 Subject: [PATCH] moved LNKER_ARGS to the end of command --- CHANGELOG.md | 1 + functions.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a4d9736..46e2801 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` diff --git a/functions.sh b/functions.sh index a8c747a..a2b3fbf 100755 --- a/functions.sh +++ b/functions.sh @@ -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