From e72de399c753c17ac0f024bee78842092f8598d1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 26 Jan 2009 13:52:40 -0400 Subject: Fixed the way that python/setup.py was being invoked. --- Makefile.am | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile.am b/Makefile.am index b92a9593..d8de8e37 100644 --- a/Makefile.am +++ b/Makefile.am @@ -260,14 +260,15 @@ clean-local: if HAVE_GDTOA install-exec-hook: - CFLAGS="$(CPPFLAGS)" \ + CFLAGS="$(CPPFLAGS)" ARCHFLAGS="$(ARCHFLAGS)" PYLIBS="$(PYLIBS)" \ LDFLAGS="$(LDFLAGS) -L. -L.libs -Llib/gdtoa -Llib/gdtoa/.libs" \ - $(PYTHON) python/setup.py install \ + $(PYTHON) $(srcdir)/python/setup.py install \ --prefix=$(prefix) --root=$(DESTDIR)/ else install-exec-hook: - CFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS) -L. -L.libs" \ - $(PYTHON) python/setup.py install \ + CFLAGS="$(CPPFLAGS)" ARCHFLAGS="$(ARCHFLAGS)" PYLIBS="$(PYLIBS)" \ + LDFLAGS="$(LDFLAGS) -L. -L.libs" \ + $(PYTHON) $(srcdir)/python/setup.py install \ --prefix=$(prefix) --root=$(DESTDIR)/ endif @@ -299,7 +300,7 @@ ledger.so: $(ledger_so_SOURCES) $(ledger_so_DEPENDENCIES) CFLAGS="$(CPPFLAGS) -I$(srcdir) -I$$BUILD_DIR -I$$BUILD_DIR/lib/gdtoa $(libledger_python_la_CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)" \ LDFLAGS="$(LDFLAGS) -L$$BUILD_DIR -L$$BUILD_DIR/.libs -L$$BUILD_DIR/lib/gdtoa -L$$BUILD_DIR/lib/gdtoa/.libs" \ ARCHFLAGS="$(ARCHFLAGS)" PYLIBS="$(PYLIBS)" \ - $(PYTHON) python/setup.py build \ + $(PYTHON) $(srcdir)/python/setup.py build \ --build-lib=$$BUILD_DIR/ --build-temp=$$BUILD_DIR/build -f) else ledger.so: $(ledger_so_SOURCES) $(ledger_so_DEPENDENCIES) @@ -308,7 +309,7 @@ ledger.so: $(ledger_so_SOURCES) $(ledger_so_DEPENDENCIES) CFLAGS="$(CPPFLAGS) -I$(srcdir) -I$$BUILD_DIR -I$$BUILD_DIR/lib/gdtoa $(libledger_python_la_CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)" \ LDFLAGS="$(LDFLAGS) -L$$BUILD_DIR -L$$BUILD_DIR/.libs" \ ARCHFLAGS="$(ARCHFLAGS)" PYLIBS="$(PYLIBS)" \ - $(PYTHON) python/setup.py build \ + $(PYTHON) $(srcdir)/python/setup.py build \ --build-lib=$$BUILD_DIR/ --build-temp=$$BUILD_DIR/build -f) endif -- cgit v1.2.3