Skip to content
Snippets Groups Projects
Commit c52e1372 authored by Vincent POLLET's avatar Vincent POLLET Committed by Amir MOHAMMADI
Browse files

Remove -dead_strip_dylibs from LDFLAGS when building on mac to solve linking issue with mkl.

parent 3f0b45ea
Branches
No related tags found
1 merge request!455opencv conda-forge recipe + BSD3 license
......@@ -34,6 +34,9 @@ if [ "${SHORT_OS_STR}" == "Darwin" ]; then
# The default flag as of OpenCV 3.4.4 are:
# CPU_DISPATCH:STRING=SSE4_1;SSE4_2;AVX;FP16;AVX2;AVX512_SKX
CPU_DISPATCH_FLAGS="-DCPU_DISPATCH=SSE4_1;SSE4_2;AVX;FP16"
# remove -dead_strip_dylibs from LDFLAGS if it exists
export LDFLAGS:=$(filter-out "-dead_strip_dylibs",$(LDFLAGS))
fi
if [ "${MACHINE_STR}" == "aarch64" ] || [ "${MACHINE_STR:0:3}" == "arm" ] || [ "${MACHINE_STR:0:3}" == "ppc" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment