File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -235,8 +235,6 @@ build_zlib() {
235235
236236 " ${download_only} " && return
237237
238- cd " ${dir_name} "
239-
240238 local zlib_cmake_args=(-DCMAKE_C_FLAGS=" ${CFLAGS} -DZLIB_CONST" )
241239
242240 case " ${PLATFORM} " in
@@ -245,6 +243,8 @@ build_zlib() {
245243 ;;
246244 esac
247245
246+ cd " ${dir_name} "
247+
248248 cmake_build " ${zlib_cmake_args[@]} "
249249}
250250
@@ -260,8 +260,6 @@ build_gmp() {
260260
261261 " ${download_only} " && return
262262
263- cd " ${dir_name} "
264-
265263 case " ${PLATFORM} " in
266264 windows-* -msvc)
267265 # Configure script gets confused if we override the compiler. Shouldn't
@@ -284,6 +282,8 @@ build_gmp() {
284282 ;;
285283 esac
286284
285+ cd " ${dir_name} "
286+
287287 configure_build " ${gmp_configure_args[@]} "
288288
289289 case " ${PLATFORM} " in
@@ -461,6 +461,7 @@ build_glew() {
461461 " ${download_only} " && return
462462
463463 cd " ${dir_name} "
464+
464465 case " ${PLATFORM} " in
465466 windows-* -* )
466467 make SYSTEM=" linux-mingw${BITNESS} " GLEW_DEST=" ${PREFIX} " CC=" ${CC} " AR=" ${AR} " RANLIB=" ${RANLIB} " STRIP=" ${HOST} -strip" LD=" ${LD} " CFLAGS.EXTRA=" ${CFLAGS} " LDFLAGS.EXTRA=" ${LDFLAGS} "
@@ -726,8 +727,6 @@ build_opus() {
726727
727728 " ${download_only} " && return
728729
729- cd " ${dir_name} "
730-
731730 local opus_cmake_args=(-DOPUS_BUILD_PROGRAMS=OFF -DOPUS_BUILD_TESTING=OFF)
732731
733732 case " ${PLATFORM} " in
@@ -737,6 +736,8 @@ build_opus() {
737736 ;;
738737 esac
739738
739+ cd " ${dir_name} "
740+
740741 cmake_build " ${opus_cmake_args[@]} "
741742}
742743
You can’t perform that action at this time.
0 commit comments