diff --git a/CHANGELOG.md b/CHANGELOG.md index 6238910..4d69efd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ + added `INCLUDE` to `default.config` + moved `LINKER_ARGS` to the end of linkage command in `functions.sh` to properly link static libs + added function `try_delete_dir_or_file` for `clean` task -+ dead code removal in `build_exec` ++ dead code removal in `build_exec` and `build_static_lib` # v5 + added task `clean` diff --git a/default.config b/default.config index ca850d5..27cb089 100644 --- a/default.config +++ b/default.config @@ -87,7 +87,7 @@ case "$TASK" in ;; # creates static library build_static_lib) - C_ARGS="-O2 -fpic" + C_ARGS="-O2 -fpic -fdata-sections -ffunction-sections" CPP_ARGS="$C_ARGS" PRE_TASK_SCRIPT= TASK_SCRIPT=cbuild/default_tasks/build_static_lib.sh