Skip to content

Commit 51706c6

Browse files
pkg-config cross-compile test
1 parent ddf8c00 commit 51706c6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

vinca/templates/build_catkin.sh.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ else
2424
fi
2525
echo "USING PYTHON_EXECUTABLE=${PYTHON_EXECUTABLE}"
2626

27+
28+
if [[ "$CONDA_BUILD_CROSS_COMPILATION" != "1" ]]; then
29+
PKG_CONFIG_EXECUTABLE=$PREFIX/bin/pkg-config
30+
else
31+
PKG_CONFIG_EXECUTABLE=$BUILD_PREFIX/bin/pkg-config
32+
fi
33+
echo "USING PKG_CONFIG_EXECUTABLE=${PKG_CONFIG_EXECUTABLE}"
34+
2735
export ROS_PYTHON_VERSION=`$PYTHON_EXECUTABLE -c "import sys; print('%i.%i' % (sys.version_info[0:2]))"`
2836
echo "Using Python $ROS_PYTHON_VERSION"
2937

0 commit comments

Comments
 (0)