]> xenbits.xensource.com Git - xen.git/commitdiff
tools/pygrub: add APPEND_LDFLAGS to CFLAGS
authorOlaf Hering <olaf@aepfle.de>
Thu, 17 Apr 2014 14:13:47 +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/pygrub/Makefile

index 4890927e5747e34ea6b10c646baf086bb2f54a49..a37a8b12901a971b8cfadb7e6a798b0caeb73a1e 100644 (file)
@@ -6,11 +6,11 @@ include $(XEN_ROOT)/tools/Rules.mk
 all: build
 .PHONY: build
 build:
-       CC="$(CC)" CFLAGS="$(CFLAGS)" $(PYTHON) setup.py build
+       CC="$(CC)" CFLAGS="$(CFLAGS) $(APPEND_LDFLAGS)" $(PYTHON) setup.py build
 
 .PHONY: install
 install: all
-       CC="$(CC)" CFLAGS="$(CFLAGS)" $(PYTHON) setup.py install \
+       CC="$(CC)" CFLAGS="$(CFLAGS) $(APPEND_LDFLAGS)" $(PYTHON) setup.py install \
                $(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" \
                --install-scripts=$(PRIVATE_BINDIR) --force
        set -e; if [ $(BINDIR) != $(PRIVATE_BINDIR) -a \