summaryrefslogtreecommitdiffstats
path: root/rules/opencv.make
diff options
context:
space:
mode:
Diffstat (limited to 'rules/opencv.make')
-rw-r--r--rules/opencv.make7
1 files changed, 7 insertions, 0 deletions
diff --git a/rules/opencv.make b/rules/opencv.make
index baa8cd7b2..e0ab3143d 100644
--- a/rules/opencv.make
+++ b/rules/opencv.make
@@ -38,6 +38,13 @@ endif
# Prepare
# ----------------------------------------------------------------------------
+# set PKG_CONFIG_LIBDIR to something, otherwise opencv will not use
+# pkg-config when cross-compiling. The value does not matter, the wrapper
+# overwrites it anyways.
+OPENCV_CONF_ENV := \
+ $(CROSS_ENV) \
+ PKG_CONFIG_LIBDIR=not-empty
+
OPENCV_CONF_TOOL := cmake
# Note: configure_helper.py does not show some options that are only