Enable stack protection (CI release executables)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e1461a6..2975bff 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -92,7 +92,8 @@
--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 @@
--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 @@
--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