flint-2.4.3-libdir.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. From 27eb23c1844029ee64907500bd8aa87097ffcd32 Mon Sep 17 00:00:00 2001
  2. From: hasufell <hasufell@hasufell.de>
  3. Date: Sun, 18 May 2014 18:46:24 +0200
  4. Subject: [PATCH] Allow to control LIBDIR
  5. Some distributions have lib32/lib64 and need to control
  6. the destination properly.
  7. ---
  8. Makefile.in | 8 +++++---
  9. 1 file changed, 5 insertions(+), 3 deletions(-)
  10. diff --git a/Makefile.in b/Makefile.in
  11. index c16f838..b6ea4c9 100644
  12. --- a/Makefile.in
  13. +++ b/Makefile.in
  14. @@ -4,6 +4,8 @@ else
  15. $(DLPATH):=$(DLPATH_ADD)
  16. endif
  17. +LIBDIR=lib
  18. +
  19. QUIET_CC = @echo ' ' CC ' ' $@;
  20. QUIET_CXX = @echo ' ' CXX ' ' $@;
  21. QUIET_AR = @echo ' ' AR ' ' $@;
  22. @@ -169,13 +171,13 @@ else
  23. endif
  24. install: library
  25. - mkdir -p $(DESTDIR)$(PREFIX)/lib
  26. + mkdir -p $(DESTDIR)$(PREFIX)/$(LIBDIR)
  27. mkdir -p $(DESTDIR)$(PREFIX)/include/flint
  28. $(AT)if [ "$(FLINT_SHARED)" -eq "1" ]; then \
  29. - cp $(FLINT_LIB) $(DESTDIR)$(PREFIX)/lib; \
  30. + cp $(FLINT_LIB) $(DESTDIR)$(PREFIX)/$(LIBDIR); \
  31. fi
  32. $(AT)if [ "$(FLINT_STATIC)" -eq "1" ]; then \
  33. - cp libflint.a $(DESTDIR)$(PREFIX)/lib; \
  34. + cp libflint.a $(DESTDIR)$(PREFIX)/$(LIBDIR); \
  35. fi
  36. cp $(HEADERS) $(DESTDIR)$(PREFIX)/include/flint
  37. $(AT)if [ ! -z $(EXT_HEADERS) ]; then \
  38. --
  39. 1.9.3