From: Kevin Day Date: Tue, 20 Feb 2024 05:18:04 +0000 (-0600) Subject: Update: Build settings to be consistent with latest build settings changes. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=187621df7bea7d76fc6e7ddade99baa8b9fe787a;p=kevux-tools Update: Build settings to be consistent with latest build settings changes. --- diff --git a/data/build/remove/settings b/data/build/remove/settings index 49f5db6..04d41d2 100644 --- a/data/build/remove/settings +++ b/data/build/remove/settings @@ -8,8 +8,10 @@ # - level: Compile using per level libraries. # - monolithic: Compile using per monolithic libraries. # - clang: Use clang rather than the default, which is generally gcc. +# - gcc: Use gcc specific settings. # - test: Compile for a test, such as unit testing. # - fanalyzer: Compile using GCC's -fanalyzer compile time option. +# - coverage: Compile for building coverage. # - thread: Compile with thread support. # - threadless: Compile without thread support. # @@ -22,8 +24,8 @@ version_micro 0 version_file micro version_target minor -modes individual individual_thread level monolithic clang test fanalyzer thread threadless -modes_default monolithic thread +modes individual individual_thread level monolithic clang gcc test fanalyzer coverage thread threadless +modes_default monolithic thread gcc build_compiler gcc build_compiler-clang clang @@ -76,10 +78,14 @@ defines -D_libcap_legacy_only_ defines-threadless -D_di_thread_support_ defines-thread -D_pthread_attr_unsupported_ -D_pthread_sigqueue_unsupported_ -flags -O2 -z now -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces +flags -O2 -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces +flags -fstack-clash-protection -fno-delete-null-pointer-checks +flags -D_FORTIFY_SOURCE=3 +flags -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now flags-thread -pthread flags-clang -Wno-logical-op-parentheses -flags-test -O0 -fstack-protector -Wall +flags-gcc -fstrict-flex-arrays=3 +flags-test -O0 -fstack-protector-strong -Wall flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/ diff --git a/data/build/tacocat/settings b/data/build/tacocat/settings index 02aaf98..e88e80c 100644 --- a/data/build/tacocat/settings +++ b/data/build/tacocat/settings @@ -8,6 +8,7 @@ # - level: Compile using per level libraries. # - monolithic: Compile using per monolithic libraries. # - clang: Use clang rather than the default, which is generally gcc +# - gcc: Use gcc specific settings. # - test: Compile for a test, such as unit testing. # - fanalyzer: Compile using GCC's -fanalyzer compile time option. # - coverage: Compile for building coverage. @@ -23,8 +24,8 @@ version_micro 0 version_file micro version_target minor -modes individual individual_thread level monolithic clang test fanalyzer coverage thread threadless -modes_default monolithic thread +modes individual individual_thread level monolithic clang gcc test fanalyzer coverage thread threadless +modes_default monolithic thread gcc build_compiler gcc build_compiler-clang clang @@ -78,14 +79,14 @@ environment LANG LC_ALL LC_COLLATE LC_CTYPE LC_FASTMSG LC_MESSAGES LC_MONETARY L defines -D_libcap_legacy_only_ defines-threadless -D_di_thread_support_ defines-thread -D_pthread_attr_unsupported_ -D_pthread_sigqueue_unsupported_ -defines-individual_thread -D_pthread_attr_unsupported_ -D_pthread_sigqueue_unsupported_ flags -O2 -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -flags -fstack-clash-protection -fno-delete-null-pointer-checks -fstrict-flex-arrays=3 +flags -fstack-clash-protection -fno-delete-null-pointer-checks flags -D_FORTIFY_SOURCE=3 flags -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now flags-thread -pthread flags-clang -Wno-logical-op-parentheses +flags-gcc -fstrict-flex-arrays=3 flags-test -O0 -fstack-protector-strong -Wall flags-fanalyzer -fanalyzer flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/