From: Kevin Day Date: Fri, 9 Jan 2015 00:51:57 +0000 (-0600) Subject: Bugfix: fix order of library linkage X-Git-Tag: 0.4.2~11 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=67ff91b073cb0da8cc81122abf432a3ef4d051bd;p=fll Bugfix: fix order of library linkage The ar command is sensitive to the order in which libraries are added. Prior to this change, building a static library could have dependencies used before they are defined due to the order in which libraries were added. Change the order so that libraries are to the right of their dependencies in the command line argument order. --- diff --git a/level_3/fss_basic_list_read/data/build/settings b/level_3/fss_basic_list_read/data/build/settings index 4b5c6b1..f1ec90a 100644 --- a/level_3/fss_basic_list_read/data/build/settings +++ b/level_3/fss_basic_list_read/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_print -lf_file -lfl_fss -lfl_console -lfl_file -lfl_strings -lfl_colors -lfl_directory -lfll_execute -lfll_fss -lfll_colors -lf_pipe +build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_print -lf_file -lf_pipe -lfl_fss -lfl_console -lfl_file -lfl_strings -lfl_colors -lfl_directory -lfll_execute -lfll_fss -lfll_colors build_sources_library fss_basic_list_read.c build_sources_program main.c build_sources_headers fss_basic_list_read.h diff --git a/level_3/fss_basic_list_write/data/build/settings b/level_3/fss_basic_list_write/data/build/settings index d6563b4..7869e02 100644 --- a/level_3/fss_basic_list_write/data/build/settings +++ b/level_3/fss_basic_list_write/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lf_console -lfl_console -lf_conversion -lf_pipe -lf_print -lf_file -lfl_colors -lfll_colors -lfl_errors -lfl_fss -lfll_fss -lfl_file +build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_pipe -lf_print -lf_file -lfl_console -lfl_colors -lfl_errors -lfl_file -lfl_fss -lfll_fss -lfll_colors build_sources_library fss_basic_list_write.c build_sources_program main.c build_sources_headers fss_basic_list_write.h diff --git a/level_3/fss_basic_read/data/build/settings b/level_3/fss_basic_read/data/build/settings index 275ac10..92f5f80 100644 --- a/level_3/fss_basic_read/data/build/settings +++ b/level_3/fss_basic_read/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_print -lf_file -lfl_fss -lfl_console -lfl_file -lfl_strings -lfl_colors -lfl_directory -lfll_execute -lfll_fss -lfll_colors -lf_pipe +build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_pipe -lf_file -lf_print -lfl_fss -lfl_console -lfl_file -lfl_strings -lfl_colors -lfl_directory -lfll_execute -lfll_fss -lfll_colors build_sources_library fss_basic_read.c build_sources_program main.c build_sources_headers fss_basic_read.h diff --git a/level_3/fss_basic_write/data/build/settings b/level_3/fss_basic_write/data/build/settings index 6a03cb3..5dc9de7 100644 --- a/level_3/fss_basic_write/data/build/settings +++ b/level_3/fss_basic_write/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lf_console -lfl_console -lf_conversion -lf_pipe -lf_print -lf_file -lfl_colors -lfll_colors -lfl_errors -lfl_fss -lfll_fss -lfl_file +build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_pipe -lf_print -lf_file -lfl_console -lfl_colors -lfl_errors -lfl_file -lfl_fss -lfll_fss -lfll_colors build_sources_library fss_basic_write.c build_sources_program main.c build_sources_headers fss_basic_write.h diff --git a/level_3/fss_extended_read/data/build/settings b/level_3/fss_extended_read/data/build/settings index a88b021..8e8095a 100644 --- a/level_3/fss_extended_read/data/build/settings +++ b/level_3/fss_extended_read/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_print -lf_file -lfl_fss -lfl_console -lfl_file -lfl_strings -lfl_colors -lfl_directory -lfll_execute -lfll_fss -lfll_colors -lf_pipe +build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_print -lf_file -lf_pipe -lfl_fss -lfl_console -lfl_file -lfl_strings -lfl_colors -lfl_directory -lfll_execute -lfll_fss -lfll_colors build_sources_library fss_extended_read.c build_sources_program main.c build_sources_headers fss_extended_read.h diff --git a/level_3/fss_extended_write/data/build/settings b/level_3/fss_extended_write/data/build/settings index 14d0d4a..3d9753a 100644 --- a/level_3/fss_extended_write/data/build/settings +++ b/level_3/fss_extended_write/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lf_console -lfl_console -lf_conversion -lf_pipe -lf_print -lf_file -lfl_colors -lfll_colors -lfl_errors -lfl_fss -lfll_fss -lfl_file +build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_pipe -lf_print -lf_file -lfl_console -lfl_colors -lfl_errors -lfl_file -lfl_fss -lfll_fss -lfll_colors build_sources_library fss_extended_write.c build_sources_program main.c build_sources_headers fss_extended_write.h diff --git a/level_3/fss_return_code/data/build/settings b/level_3/fss_return_code/data/build/settings index 9b3b627..9e8596f 100644 --- a/level_3/fss_return_code/data/build/settings +++ b/level_3/fss_return_code/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lf_console -lfl_console -lf_conversion -lf_pipe -lf_print -lfl_colors -lfll_colors -lfl_errors -lfl_fss -lfll_fss +build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_pipe -lf_print -lfl_console -lfl_colors -lfl_errors -lfl_fss -lfll_fss -lfll_colors build_sources_library fss_return_code.c build_sources_program main.c build_sources_headers fss_return_code.h diff --git a/level_3/return_code/data/build/settings b/level_3/return_code/data/build/settings index f3c27c9..33df211 100644 --- a/level_3/return_code/data/build/settings +++ b/level_3/return_code/data/build/settings @@ -9,7 +9,7 @@ version_micro 2 build_compiler gcc build_linker ar -build_libraries -lc -lf_memory -lf_console -lfl_console -lf_conversion -lf_pipe -lf_print -lfl_colors -lfll_colors -lfl_errors +build_libraries -lc -lf_memory -lf_console -lf_conversion -lf_pipe -lf_print -lfl_console -lfl_colors -lfl_errors -lfll_colors build_sources_library return_code.c build_sources_program main.c build_sources_headers return_code.h