# HG changeset patch # User Mike Miller # Date 1493910693 25200 # Node ID 4e427ec1650a57dd176377a3cff77a93b3e4470c # Parent aeed116cf9f96053ebfa3df46e7a487e698d2b22 build: add Python library directory to oct file runtime path * configure.ac: Add a -R option to add the Python library directory to the runtime path of oct files if it is in a non-standard location. diff -r aeed116cf9f9 -r 4e427ec1650a configure.ac --- a/configure.ac Wed May 03 21:50:37 2017 -0700 +++ b/configure.ac Thu May 04 08:11:33 2017 -0700 @@ -44,6 +44,13 @@ # Pick a Python library to use AX_PYTHON_DEVEL +for opt in $PYTHON_LIBS; do + case "$opt" in #( + -L/usr*) : ;; #( + -L*) PYTHON_LIBS="-R${opt#-L} $PYTHON_LIBS" ;; #( + *) : ;; + esac +done AM_INIT_AUTOMAKE([foreign -Wno-portability]) LT_INIT