qhull-pic.patch 843 B

1234567891011121314151617181920212223242526
  1. From a5d0e644ee886251cec5d05948502517e154a9e1 Mon Sep 17 00:00:00 2001
  2. From: "Joshua A. Anderson" <joaander@umich.edu>
  3. Date: Fri, 20 Sep 2019 09:36:51 -0400
  4. Subject: [PATCH] Build libqhullcpp with position independent code
  5. This allows libqhullcpp.a to be linked into shared libraries (i.e.
  6. python modules).
  7. ---
  8. CMakeLists.txt | 3 ++-
  9. 1 file changed, 2 insertions(+), 1 deletion(-)
  10. diff --git a/CMakeLists.txt b/CMakeLists.txt
  11. index 9d44056..f4b6b37 100644
  12. --- a/CMakeLists.txt
  13. +++ b/CMakeLists.txt
  14. @@ -466,7 +466,8 @@ endif(UNIX)
  15. add_library(${qhull_CPP} STATIC ${libqhullcpp_SOURCES})
  16. set_target_properties(${qhull_CPP} PROPERTIES
  17. - VERSION ${qhull_VERSION})
  18. + VERSION ${qhull_VERSION}
  19. + POSITION_INDEPENDENT_CODE "TRUE")
  20. # ---------------------------------------
  21. # Define qhull executables linked to qhullstatic library