Skip to content

Commit 2c954e7

Browse files
committed
build: fix configure args
1 parent 0524def commit 2c954e7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

nginx-build-msys2.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,11 @@ configure_args=(
9090
--with-http_ssl_module \
9191
--with-mail_ssl_module \
9292
--with-stream_ssl_module \
93-
--with-cc-opt="-O2 -fno-strict-aliasing" \
9493
--with-ld-opt="-Wl,--gc-sections,--build-id=none" \
9594
--prefix=
9695
)
97-
98-
auto/configure ${configure_args[@]}
96+
echo ${configure_args[@]}
97+
auto/configure ${configure_args[@]} --with-cc-opt='-O2 -fno-strict-aliasing -pipe'
9998

10099
# build
101100
make -j$(nproc)
@@ -105,7 +104,7 @@ mv -f "objs/nginx.exe" "../nginx-${version}-${machine_str}.exe"
105104

106105
# re-configure with debugging log
107106
configure_args+=(--with-debug)
108-
auto/configure ${configure_args[@]}
107+
auto/configure ${configure_args[@]} --with-cc-opt='-O2 -fno-strict-aliasing -pipe'
109108

110109
# re-build with debugging log
111110
make -j$(nproc)

0 commit comments

Comments
 (0)