You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.0 KiB

  1. From 5370c6774a333b2b3989639275d4093fdc541db9 Mon Sep 17 00:00:00 2001
  2. From: Bertrand Jacquin <bertrand@jacquin.bzh>
  3. Date: Thu, 6 Oct 2016 00:32:39 +0100
  4. Subject: [PATCH 23/26] MINOR: build: Allow linking to device-atlas library
  5. file
  6. DeviceAtlas might be installed in a location where a user might not have
  7. enough permissions to write json.o and dac.o
  8. (cherry picked from commit 3a2661d6b4218704c828c8a712c87d651bfe29b5)
  9. ---
  10. Makefile | 4 ++++
  11. 1 file changed, 4 insertions(+)
  12. diff --git a/Makefile b/Makefile
  13. index 1d0f2bc..0242cae 100644
  14. --- a/Makefile
  15. +++ b/Makefile
  16. @@ -615,8 +615,12 @@ endif
  17. DEVICEATLAS_SRC =
  18. DEVICEATLAS_INC = $(DEVICEATLAS_SRC)
  19. DEVICEATLAS_LIB = $(DEVICEATLAS_SRC)
  20. +ifeq ($(DEVICEATLAS_SRC),)
  21. +OPTIONS_LDFLAGS += -lda
  22. +else
  23. OPTIONS_OBJS += $(DEVICEATLAS_LIB)/json.o
  24. OPTIONS_OBJS += $(DEVICEATLAS_LIB)/dac.o
  25. +endif
  26. OPTIONS_OBJS += src/da.o
  27. OPTIONS_CFLAGS += -DUSE_DEVICEATLAS $(if $(DEVICEATLAS_INC),-I$(DEVICEATLAS_INC))
  28. BUILD_OPTIONS += $(call ignore_implicit,USE_DEVICEATLAS)
  29. --
  30. 2.7.3