From cc23303fa51131269a48536cd079cd56177ea4c5 Mon Sep 17 00:00:00 2001 From: Vitaly Date: Sat, 15 Jun 2024 12:41:01 +0200 Subject: [PATCH] Fixed issues with compilation flags on modern compiler versions. --- .github/workflows/fedora.yml | 4 ++-- .github/workflows/ubuntu.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/fedora.yml b/.github/workflows/fedora.yml index d2dd4ae..eb692af 100644 --- a/.github/workflows/fedora.yml +++ b/.github/workflows/fedora.yml @@ -62,8 +62,8 @@ jobs: -DSYSTEMD_INTEGRATION:BOOL=ON cmake --build build env: - CFLAGS: -O2 -fexceptions -pipe -Wall -Wextra -Werror -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fPIC -fstack-protector-strong -fasynchronous-unwind-tables -fcf-protection - CXXFLAGS: -O2 -fexceptions -pipe -Wall -Wextra -Werror -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fPIC -fstack-protector-strong -fasynchronous-unwind-tables -fcf-protection + CFLAGS: -O2 -fexceptions -pipe -Wall -Wextra -Werror -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fPIC -fstack-protector-strong -fasynchronous-unwind-tables -fcf-protection + CXXFLAGS: -O2 -fexceptions -pipe -Wall -Wextra -Werror -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fPIC -fstack-protector-strong -fasynchronous-unwind-tables -fcf-protection LDFLAGS: -Wl,-z,relro -Wl,--as-needed -Wl,-z,now - name: Installing project with CMake run: | diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 3e335d8..63c6ae9 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -60,8 +60,8 @@ jobs: -DSYSTEMD_INTEGRATION:BOOL=ON cmake --build build env: - CFLAGS: -O2 -fexceptions -pipe -Wall -Wextra -Werror -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fPIC -fstack-protector-strong -fasynchronous-unwind-tables -fcf-protection - CXXFLAGS: -O2 -fexceptions -pipe -Wall -Wextra -Werror -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fPIC -fstack-protector-strong -fasynchronous-unwind-tables -fcf-protection + CFLAGS: -O2 -fexceptions -pipe -Wall -Wextra -Werror -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fPIC -fstack-protector-strong -fasynchronous-unwind-tables -fcf-protection + CXXFLAGS: -O2 -fexceptions -pipe -Wall -Wextra -Werror -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fPIC -fstack-protector-strong -fasynchronous-unwind-tables -fcf-protection LDFLAGS: -Wl,-z,relro -Wl,--as-needed -Wl,-z,now - name: Installing project with CMake run: |