0002-Makefile-add-missing-DESTDIR-variable-use.patch 990 B

1234567891011121314151617181920212223242526272829303132
  1. From 517d9fbe63fbd7e72445dce1cb3f3d8457d838cb Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  3. Date: Tue, 14 Aug 2018 23:17:25 +0200
  4. Subject: [PATCH] Makefile: add missing DESTDIR variable use
  5. Patch borrowed from OpenEmbedded, available at
  6. recipes/libaio/libaio-0.3.106/destdir.patch in their source tree.
  7. It just adds support for the traditional DESTDIR variable to install
  8. the library in a different sysroot than the normal /.
  9. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  10. ---
  11. Makefile | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/Makefile b/Makefile
  14. index e9dbdb0..c1fb831 100644
  15. --- a/Makefile
  16. +++ b/Makefile
  17. @@ -14,7 +14,7 @@ all:
  18. @$(MAKE) -C src
  19. install:
  20. - @$(MAKE) -C src install prefix=$(prefix) includedir=$(includedir) libdir=$(libdir)
  21. + @$(MAKE) -C src install prefix=$(DESTDIR)$(prefix) includedir=$(DESTDIR)$(includedir) libdir=$(DESTDIR)$(libdir)
  22. check:
  23. @$(MAKE) -C harness check
  24. --
  25. 2.14.4