0001-Let-the-shared-and-the-static-library-have-the-same-.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. From b08fe001e3d3f3564ef298e62342f07080807f7a Mon Sep 17 00:00:00 2001
  2. From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
  3. Date: Wed, 28 Oct 2015 15:45:10 +0000
  4. Subject: [PATCH] Let the shared and the static library have the same name
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. The will be differentiated by the extension (.so or .a).
  9. Fetched from:
  10. https://github.com/vriera/yajl/commit/6d09f11b8fd358cab0e31b965327e64a599f9ce9
  11. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
  12. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
  13. ---
  14. src/CMakeLists.txt | 1 +
  15. 1 file changed, 1 insertion(+)
  16. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
  17. index 99cf9e9..1a900d3 100644
  18. --- a/src/CMakeLists.txt
  19. +++ b/src/CMakeLists.txt
  20. @@ -36,6 +36,7 @@ SET (shareDir ${CMAKE_CURRENT_BINARY_DIR}/../${YAJL_DIST_NAME}/share/pkgconfig)
  21. SET(LIBRARY_OUTPUT_PATH ${libDir})
  22. ADD_LIBRARY(yajl_s STATIC ${SRCS} ${HDRS} ${PUB_HDRS})
  23. +SET_TARGET_PROPERTIES(yajl_s PROPERTIES OUTPUT_NAME yajl)
  24. ADD_LIBRARY(yajl SHARED ${SRCS} ${HDRS} ${PUB_HDRS})
  25. --
  26. 2.8.0