changeset 417:4e427ec1650a

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.
author Mike Miller <mtmiller@octave.org>
date Thu, 04 May 2017 08:11:33 -0700
parents aeed116cf9f9
children a39b2e9112a0
files configure.ac
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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