File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -771,18 +771,21 @@ build_opus() {
771771
772772 " ${download_only} " && return
773773
774- local opus_cmake_args=(-DOPUS_BUILD_PROGRAMS=OFF -DOPUS_BUILD_TESTING=OFF )
774+ local opus_cmake_args=()
775775
776776 case " ${PLATFORM} " in
777777 windows-* -* )
778- # With MinGW _FORTIFY_SOURCE (added by configure) can only by used with -fstack-protector enabled.
779- opus_cmake_args+=(-DCMAKE_C_FLAGS=" ${CFLAGS} -D_FORTIFY_SOURCE=0" )
778+ # With MinGW, we would get this error:
779+ # undefined reference to `__stack_chk_guard'
780+ opus_cmake_args+=(-DOPUS_FORTIFY_SOURCE=OFF -DOPUS_STACK_PROTECTOR=OFF)
780781 ;;
781782 esac
782783
783784 cd " ${dir_name} "
784785
785786 cmake_build " ${opus_cmake_args[@]} " \
787+ -DOPUS_BUILD_PROGRAMS=OFF \
788+ -DOPUS_BUILD_TESTING=OFF \
786789 -DOPUS_X86_MAY_HAVE_SSE=ON \
787790 -DOPUS_X86_MAY_HAVE_SSE2=ON \
788791 -DOPUS_X86_PRESUME_SSE=ON \
You can’t perform that action at this time.
0 commit comments