From ff4bf68b29a4bf75387bc1918e49937758509e78 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Mon, 31 Jul 2023 17:30:35 -0500 Subject: Enable stack protection (CI release executables) --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e1461a60..2975bff7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,7 +92,8 @@ jobs: --disable-valgrind \ --with-oniguruma=builtin \ --enable-static \ - --enable-all-static + --enable-all-static \ + CFLAGS="-O2 -pthread -fstack-protector-all" make -j"$(nproc)" file ./jq cp ./jq jq-${{ env.SUFFIX }} @@ -157,7 +158,8 @@ jobs: --disable-valgrind \ --with-oniguruma=builtin \ --enable-static \ - --enable-all-static + --enable-all-static \ + CFLAGS="-O2 -pthread -fstack-protector-all" make -j"$(nproc)" strip ./jq file ./jq @@ -234,7 +236,8 @@ jobs: --with-oniguruma=builtin \ --disable-shared \ --enable-static \ - --enable-all-static + --enable-all-static \ + CFLAGS="-O2 -pthread -fstack-protector-all" make -j$(nproc) file ./jq.exe cp ./jq.exe jq-${{ env.SUFFIX }}.exe -- cgit v1.2.3