File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -80,10 +80,10 @@ LIBS_STATIC='ON'
80
80
CMAKE_TOOLCHAIN=' '
81
81
# Always reset flags, we heavily cross-compile and must not inherit any stray flag
82
82
# from environment.
83
- CFLAGS=' '
84
- CXXFLAGS=' '
85
83
CPPFLAGS=' '
86
- LDFLAGS=' '
84
+ CFLAGS=' -O2 -fPIC'
85
+ CXXFLAGS=' -O2 -fPIC'
86
+ LDFLAGS=' -O2 -fPIC'
87
87
88
88
log () {
89
89
level=" ${1} " ; shift
@@ -227,8 +227,7 @@ build_pkgconfig() {
227
227
228
228
cd " ${dir_name} "
229
229
230
- # The default -O2 is dropped when there's user-provided CFLAGS.
231
- CFLAGS=" ${CFLAGS} -O2 -Wno-error=int-conversion" configure_build --with-internal-glib
230
+ CFLAGS=" ${CFLAGS} -Wno-error=int-conversion" configure_build --with-internal-glib
232
231
}
233
232
234
233
# Build NASM
@@ -314,8 +313,7 @@ build_gmp() {
314
313
315
314
cd " ${dir_name} "
316
315
317
- # The default -O2 is dropped when there's user-provided CFLAGS.
318
- CFLAGS=" ${CFLAGS} -O2" configure_build " ${gmp_configure_args[@]} "
316
+ configure_build " ${gmp_configure_args[@]} "
319
317
320
318
case " ${PLATFORM} " in
321
319
windows-* -msvc)
@@ -338,8 +336,7 @@ build_nettle() {
338
336
339
337
cd " ${dir_name} "
340
338
341
- # The default -O2 is dropped when there's user-provided CFLAGS.
342
- CFLAGS=" ${CFLAGS} -O2" configure_build
339
+ configure_build
343
340
}
344
341
345
342
# Build cURL
@@ -808,8 +805,7 @@ build_opusfile() {
808
805
809
806
cd " ${dir_name} "
810
807
811
- # The default -O2 is dropped when there's user-provided CFLAGS.
812
- CFLAGS=" ${CFLAGS} -O2" configure_build --disable-http
808
+ configure_build --disable-http
813
809
}
814
810
815
811
# Build ncurses
You can’t perform that action at this time.
0 commit comments