Skip to content

Commit 42284b1

Browse files
committed
Add 16KB page alignment to opencv-python CMake build
opencv-python uses scikit-build/CMake which doesn't inherit LDFLAGS. Pass -DCMAKE_SHARED_LINKER_FLAGS with max-page-size=16384 via CMAKE_ARGS.
1 parent 16a5fb2 commit 42284b1

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
@@ -27,6 +27,7 @@ build:
2727
-DANDROID_NATIVE_API_LEVEL={ANDROID_API_LEVEL}
2828
-DANDROID_ALLOW_UNDEFINED_VERSION_SCRIPT_SYMBOLS=1
2929
-DCMAKE_TOOLCHAIN_FILE={NDK_ROOT}/build/cmake/android.toolchain.cmake
30+
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,-z,max-page-size=16384"
3031
-DOPENCV_FORCE_PYTHON_LIBS=ON
3132
-DPYTHON3_INCLUDE_PATH={prefix}/include/python{py_version_short}
3233
-DPYTHON3_LIBRARIES={prefix}/lib/libpython{py_version_short}.so

0 commit comments

Comments
 (0)