Skip to content

Commit 6de0c1a

Browse files
authored
build: merge multiple with-cc-opt
1 parent 13d25b1 commit 6de0c1a

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
@@ -98,7 +98,6 @@ configure_args=(
9898
--http-fastcgi-temp-path=temp/fastcgi \
9999
--http-scgi-temp-path=temp/scgi \
100100
--http-uwsgi-temp-path=temp/uwsgi \
101-
--with-cc-opt=-DFD_SETSIZE=1024 \
102101
--with-http_realip_module \
103102
--with-http_addition_module \
104103
--with-http_sub_module \
@@ -124,7 +123,7 @@ configure_args=(
124123
# no-ssl build
125124
echo "${configure_args[@]}"
126125
auto/configure "${configure_args[@]}" \
127-
--with-cc-opt='-s -O2 -fno-strict-aliasing -pipe'
126+
--with-cc-opt='-DFD_SETSIZE=1024 -s -O2 -fno-strict-aliasing -pipe'
128127

129128
# build
130129
make "-j$(nproc)"
@@ -142,7 +141,7 @@ configure_args+=(
142141
)
143142
echo "${configure_args[@]}"
144143
auto/configure "${configure_args[@]}" \
145-
--with-cc-opt='-s -O2 -fno-strict-aliasing -pipe' \
144+
--with-cc-opt='-DFD_SETSIZE=1024 -s -O2 -fno-strict-aliasing -pipe' \
146145
--with-openssl-opt='no-tests -D_WIN32_WINNT=0x0501'
147146

148147
# build
@@ -154,7 +153,7 @@ mv -f "objs/nginx.exe" "../nginx-${version}-${machine_str}.exe"
154153
# re-configure with debugging log
155154
configure_args+=(--with-debug)
156155
auto/configure "${configure_args[@]}" \
157-
--with-cc-opt='-O2 -fno-strict-aliasing -pipe' \
156+
--with-cc-opt='-DFD_SETSIZE=1024 -O2 -fno-strict-aliasing -pipe' \
158157
--with-openssl-opt='no-tests -D_WIN32_WINNT=0x0501'
159158

160159
# re-build with debugging log

0 commit comments

Comments
 (0)