File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -92,14 +92,16 @@ jobs:
92
92
--disable-valgrind \
93
93
--with-oniguruma=builtin \
94
94
--enable-static \
95
- --enable-all-static
95
+ --enable-all-static \
96
+ CFLAGS="-O2 -pthread -fstack-protector-all"
96
97
make -j"$(nproc)"
97
98
file ./jq
98
99
cp ./jq jq-${{ env.SUFFIX }}
99
100
- name : Test
100
101
# Only run tests for amd64 matching the CI machine arch
101
102
if : ${{ matrix.arch == 'amd64' }}
102
103
run : |
104
+ nm jq | grep __stack_chk_fail
103
105
make check VERBOSE=yes
104
106
git diff --exit-code
105
107
- name : Upload Test Logs
@@ -157,7 +159,8 @@ jobs:
157
159
--disable-valgrind \
158
160
--with-oniguruma=builtin \
159
161
--enable-static \
160
- --enable-all-static
162
+ --enable-all-static \
163
+ CFLAGS="-O2 -pthread -fstack-protector-all"
161
164
make -j"$(nproc)"
162
165
strip ./jq
163
166
file ./jq
@@ -234,9 +237,11 @@ jobs:
234
237
--with-oniguruma=builtin \
235
238
--disable-shared \
236
239
--enable-static \
237
- --enable-all-static
240
+ --enable-all-static \
241
+ CFLAGS="-O2 -pthread -fstack-protector-all"
238
242
make -j$(nproc)
239
243
file ./jq.exe
244
+ nm ./jq.exe | grep __stack_chk_fail
240
245
cp ./jq.exe jq-${{ env.SUFFIX }}.exe
241
246
- name : Test
242
247
# Only run tests for amd64 matching the CI machine arch
You can’t perform that action at this time.
0 commit comments