diff options
author | Christian Limpach <Christian.Limpach@xensource.com> | 2007-03-05 16:43:12 +0000 |
---|---|---|
committer | Christian Limpach <Christian.Limpach@xensource.com> | 2007-03-05 16:43:12 +0000 |
commit | 98b8fba136b03d849a440d0c3e33d27735ce2366 (patch) | |
tree | 595af3fc9311ebc58ad114144b8bacd967dc2199 /tools/python/Makefile | |
parent | 93a0e490f292ef92ed1839bd2fc800051e47711a (diff) | |
download | xen-98b8fba136b03d849a440d0c3e33d27735ce2366.tar.gz xen-98b8fba136b03d849a440d0c3e33d27735ce2366.tar.bz2 xen-98b8fba136b03d849a440d0c3e33d27735ce2366.zip |
[tools] Use auxbin.py to determine libpath at build time.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Diffstat (limited to 'tools/python/Makefile')
-rw-r--r-- | tools/python/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/python/Makefile b/tools/python/Makefile index dfef918cb4..ae4254c6e6 100644 --- a/tools/python/Makefile +++ b/tools/python/Makefile @@ -18,8 +18,9 @@ build: .PHONY: install ifndef XEN_PYTHON_NATIVE_INSTALL +install: LIBPATH=$(shell PYTHONPATH=xen/util python -c "import auxbin; print auxbin.libpath()") install: install-messages - CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --force + CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --force --install-lib="$(DESTDIR)$(LIBPATH)/python" else install: install-messages CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --force |