From: Olaf Hering Date: Thu, 17 Apr 2014 14:13:42 +0000 (+0200) Subject: tools/python: add APPEND_LDFLAGS to CFLAGS X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e0b57d30de36e71d2730ae392ec6d1cb47907801;p=people%2Fliuw%2Flibxenctrl-split%2Fxen.git tools/python: add APPEND_LDFLAGS to CFLAGS Required to pass -Wl,-rpath,$libdir to link command. Signed-off-by: Olaf Hering Acked-by: Ian Campbell --- diff --git a/tools/python/Makefile b/tools/python/Makefile index 74ed027460..c433cbe3cc 100644 --- a/tools/python/Makefile +++ b/tools/python/Makefile @@ -16,11 +16,11 @@ build: genpath genwrap.py $(XEN_ROOT)/tools/libxl/libxl_types.idl \ $(XEN_ROOT)/tools/libxl/libxl_types.idl \ xen/lowlevel/xl/_pyxl_types.h \ xen/lowlevel/xl/_pyxl_types.c - CC="$(CC)" CFLAGS="$(CFLAGS)" $(PYTHON) setup.py build + CC="$(CC)" CFLAGS="$(CFLAGS) $(APPEND_LDFLAGS)" $(PYTHON) setup.py build .PHONY: install install: - CC="$(CC)" CFLAGS="$(CFLAGS)" $(PYTHON) setup.py install \ + CC="$(CC)" CFLAGS="$(CFLAGS) $(APPEND_LDFLAGS)" $(PYTHON) setup.py install \ $(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" --force $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)