[beast: 1/9] BUILD: provide CONFIGURE_INSTALLPATH_OBJDIR to handle .libs/ subdirs
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 1/9] BUILD: provide CONFIGURE_INSTALLPATH_OBJDIR to handle .libs/ subdirs
- Date: Thu, 8 Jun 2017 20:22:46 +0000 (UTC)
commit e68c7ebc6d8322b81f115831c77acca230448dc4
Author: Tim Janik <timj gnu org>
Date: Fri May 26 00:06:13 2017 +0200
BUILD: provide CONFIGURE_INSTALLPATH_OBJDIR to handle .libs/ subdirs
Signed-off-by: Tim Janik <timj gnu org>
bse/pybse/Makefile.am | 5 ++---
configure.ac | 3 +++
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/bse/pybse/Makefile.am b/bse/pybse/Makefile.am
index 4c6a15a..da85c17 100644
--- a/bse/pybse/Makefile.am
+++ b/bse/pybse/Makefile.am
@@ -35,9 +35,8 @@ CLEANFILES += bseidlapi.pyx Bse.cc
# call python with uninstalled or fully installed modules
FPYTHON = PYTHONPATH="$$PYTHONPATH:${pymodulesdir}" $(PYTHON)
-UPYTHON = PYTHONPATH="$(abs_builddir)/${objdir}:$$PYTHONPATH" $(PYTHON)
-# Loading newly built Python modules requires accesss to libtool objdir
-objdir = .libs
+UPYTHON = PYTHONPATH="$(abs_builddir)/@objdir@:$$PYTHONPATH" $(PYTHON)
+# Loading newly built Python modules requires accesss to libtool $objdir
python-call-info:
@echo '${FPYTHON} -ic "import Bse"'
@echo '${UPYTHON} -ic "import Bse"'
diff --git a/configure.ac b/configure.ac
index e26640a..4bdc672 100644
--- a/configure.ac
+++ b/configure.ac
@@ -128,6 +128,9 @@ AC_LIB_PROG_LD
AC_LIB_PROG_LD_GNU
CFLAGS="$saved_CFLAGS" ; CXXFLAGS="$saved_CXXFLAGS"
AM_PROG_LIBTOOL
+# AM_PROG_LIBTOOL sets up lt_cv_objdir and objdir
+AC_SUBST(objdir)
+AC_DEFINE_UNQUOTED(CONFIGURE_INSTALLPATH_OBJDIR, [".libs"], [Directory used for libtool objects])
AC_LIBTOOL_DLOPEN
# == C++ Dialect ==
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]