Skip to content

Commit 40f487e

Browse files
committed
cflags-o3
1 parent 13d65d4 commit 40f487e

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

external_deps/build.sh

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ LIBS_SHARED='OFF'
5252
CMAKE_TOOLCHAIN=''
5353
# Always reset flags, we heavily cross-compile and must not inherit any stray flag
5454
# from environment.
55-
CFLAGS=''
56-
CXXFLAGS=''
55+
CFLAGS='-O3'
56+
CXXFLAGS='-O3'
5757
CPPFLAGS=''
5858
LDFLAGS=''
5959

@@ -187,8 +187,7 @@ build_pkgconfig() {
187187

188188
cd "${dir_name}"
189189

190-
# The default -O2 is dropped when there's user-provided CFLAGS.
191-
CFLAGS="${CFLAGS} -O2" configure_build --with-internal-glib
190+
configure_build --with-internal-glib
192191
}
193192

194193
# Build NASM
@@ -273,8 +272,7 @@ build_gmp() {
273272
;;
274273
esac
275274

276-
# The default -O2 is dropped when there's user-provided CFLAGS.
277-
CFLAGS="${CFLAGS} -O2" configure_build "${gmp_configure_args[@]}"
275+
configure_build "${gmp_configure_args[@]}"
278276

279277
case "${PLATFORM}" in
280278
windows-*-msvc)
@@ -297,8 +295,7 @@ build_nettle() {
297295

298296
cd "${dir_name}"
299297

300-
# The default -O2 is dropped when there's user-provided CFLAGS.
301-
CFLAGS="${CFLAGS} -O2" configure_build
298+
configure_build
302299
}
303300

304301
# Build cURL
@@ -724,8 +721,7 @@ build_opusfile() {
724721

725722
cd "${dir_name}"
726723

727-
# The default -O2 is dropped when there's user-provided CFLAGS.
728-
CFLAGS="${CFLAGS} -O2" configure_build --disable-http
724+
configure_build --disable-http
729725
}
730726

731727
# Build Lua

0 commit comments

Comments
 (0)