libaio-0.3.109-destdir.patch 826 B

123456789101112131415161718192021222324
  1. Patch borrowed from OpenEmbedded, available at
  2. recipes/libaio/libaio-0.3.106/destdir.patch in their source tree.
  3. It just adds support for the traditional DESTDIR variable to install
  4. the library in a different sysroot than the normal /.
  5. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  6. ---
  7. Makefile | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. Index: libaio-0.3.109/Makefile
  10. ===================================================================
  11. --- libaio-0.3.109.orig/Makefile
  12. +++ libaio-0.3.109/Makefile
  13. @@ -23,7 +23,7 @@
  14. @$(MAKE) -C src
  15. install:
  16. - @$(MAKE) -C src install prefix=$(prefix) includedir=$(includedir) libdir=$(libdir)
  17. + @$(MAKE) -C src install prefix=$(DESTDIR)$(prefix) includedir=$(DESTDIR)$(includedir) libdir=$(DESTDIR)$(libdir)
  18. check:
  19. @$(MAKE) -C harness check