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