]> xenbits.xensource.com Git - xen.git/commitdiff
tools/python: add APPEND_LDFLAGS to CFLAGS
authorOlaf Hering <olaf@aepfle.de>
Thu, 17 Apr 2014 14:13:42 +0000 (16:13 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 23 Apr 2014 11:21:34 +0000 (12:21 +0100)
Required to pass -Wl,-rpath,$libdir to link command.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/python/Makefile

index 74ed027460f1bfa0d79ca23b227fd9fc2771c9a4..c433cbe3cc515f42529fe42e9c9fc03424cd184d 100644 (file)
@@ -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)