Skip to content

Commit b54a4ea

Browse files
committed
Add CMAKE_MODULE_LINKER_FLAGS for opencv-python 16KB alignment
cv2.abi3.so is a CMake MODULE, not SHARED library, so it needs CMAKE_MODULE_LINKER_FLAGS in addition to CMAKE_SHARED_LINKER_FLAGS.
1 parent 42284b1 commit b54a4ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

recipes/opencv-python/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ build:
2828
-DANDROID_ALLOW_UNDEFINED_VERSION_SCRIPT_SYMBOLS=1
2929
-DCMAKE_TOOLCHAIN_FILE={NDK_ROOT}/build/cmake/android.toolchain.cmake
3030
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,-z,max-page-size=16384"
31+
-DCMAKE_MODULE_LINKER_FLAGS="-Wl,-z,max-page-size=16384"
3132
-DOPENCV_FORCE_PYTHON_LIBS=ON
3233
-DPYTHON3_INCLUDE_PATH={prefix}/include/python{py_version_short}
3334
-DPYTHON3_LIBRARIES={prefix}/lib/libpython{py_version_short}.so

0 commit comments

Comments
 (0)