diff options
author | Alex Richert <82525672+AlexanderRichert-NOAA@users.noreply.github.com> | 2023-10-06 15:04:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-06 15:04:51 -0700 |
commit | 482525d0f9e11038e0b645740c406dd2a6797af5 (patch) | |
tree | 653b2d3bbe379693ad3c2deb3694fcdc8cfdb549 /var/spack/repos/builtin/packages/bufr/cmakelists-apple-llvm-ranlib.patch | |
parent | 599220924ddaefd437bf8919a802836e9aeb17f4 (diff) | |
download | spack-482525d0f9e11038e0b645740c406dd2a6797af5.tar.gz spack-482525d0f9e11038e0b645740c406dd2a6797af5.tar.bz2 spack-482525d0f9e11038e0b645740c406dd2a6797af5.tar.xz spack-482525d0f9e11038e0b645740c406dd2a6797af5.zip |
Update bufr recipe (#40033)
* Update bufr recipe
* Add v12.0.1
* style fixes
* remove test-related functionality for bufr
* Re-add testing
---------
Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
Diffstat (limited to 'var/spack/repos/builtin/packages/bufr/cmakelists-apple-llvm-ranlib.patch')
-rw-r--r-- | var/spack/repos/builtin/packages/bufr/cmakelists-apple-llvm-ranlib.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/bufr/cmakelists-apple-llvm-ranlib.patch b/var/spack/repos/builtin/packages/bufr/cmakelists-apple-llvm-ranlib.patch new file mode 100644 index 0000000000..8f2e363e58 --- /dev/null +++ b/var/spack/repos/builtin/packages/bufr/cmakelists-apple-llvm-ranlib.patch @@ -0,0 +1,15 @@ +--- a/CMakeLists.txt 2022-02-08 10:03:55.000000000 -0700 ++++ b/CMakeLists.txt 2022-02-08 10:03:51.000000000 -0700 +@@ -39,9 +39,9 @@ + find_package(Python3 REQUIRED COMPONENTS Interpreter) + endif() + +-if(APPLE) +- # The linker on macOS does not include `common symbols` by default +- # Passing the -c flag includes them and fixes an error with undefined symbols ++if(APPLE AND NOT "${CMAKE_RANLIB}" MATCHES "^.*(llvm-ranlib)$") ++ # The linker on macOS does not include `common symbols` by default, Intel requires ++ # passing the -c flag to include them and fix an error with undefined symbols + set(CMAKE_Fortran_ARCHIVE_FINISH "<CMAKE_RANLIB> -c <TARGET>") + set(CMAKE_C_ARCHIVE_FINISH "<CMAKE_RANLIB> -c <TARGET>") + endif() |