Skip to content

Commit 007d90e

Browse files
committed
opus-cmake
1 parent 8f20d4f commit 007d90e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

external_deps/build.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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 \

0 commit comments

Comments
 (0)