Commit c52e1372 authored by Vincent POLLET's avatar Vincent POLLET Committed by Amir MOHAMMADI

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

parent 3f0b45ea
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment