File tree 1 file changed +7
-11
lines changed
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
@@ -226,8 +226,7 @@ build_pkgconfig() {
226
226
227
227
cd " ${dir_name} "
228
228
229
- # The default -O2 is dropped when there's user-provided CFLAGS.
230
- CFLAGS=" ${CFLAGS} -O2" configure_build --with-internal-glib
229
+ configure_build --with-internal-glib
231
230
}
232
231
233
232
# Build NASM
@@ -313,8 +312,7 @@ build_gmp() {
313
312
314
313
cd " ${dir_name} "
315
314
316
- # The default -O2 is dropped when there's user-provided CFLAGS.
317
- CFLAGS=" ${CFLAGS} -O2" configure_build " ${gmp_configure_args[@]} "
315
+ configure_build " ${gmp_configure_args[@]} "
318
316
319
317
case " ${PLATFORM} " in
320
318
windows-* -msvc)
@@ -337,8 +335,7 @@ build_nettle() {
337
335
338
336
cd " ${dir_name} "
339
337
340
- # The default -O2 is dropped when there's user-provided CFLAGS.
341
- CFLAGS=" ${CFLAGS} -O2" configure_build
338
+ configure_build
342
339
}
343
340
344
341
# Build cURL
@@ -800,8 +797,7 @@ build_opusfile() {
800
797
801
798
cd " ${dir_name} "
802
799
803
- # The default -O2 is dropped when there's user-provided CFLAGS.
804
- CFLAGS=" ${CFLAGS} -O2" configure_build --disable-http
800
+ configure_build --disable-http
805
801
}
806
802
807
803
# Build ncurses
You can’t perform that action at this time.
0 commit comments