diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-24 02:44:40 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-24 02:44:40 -0700 |
commit | e1848c1d28cd49278bf19ee75d337e2d2b8b77f1 (patch) | |
tree | 4e768cdc0979db9208b0281678df3135189bcd81 /var | |
parent | c83d22b5fcdc3de16102e226e497f745d6bd7043 (diff) | |
parent | 9b8b17b6f1ec22ce4ac2115e5f7687beba21dd19 (diff) | |
download | spack-e1848c1d28cd49278bf19ee75d337e2d2b8b77f1.tar.gz spack-e1848c1d28cd49278bf19ee75d337e2d2b8b77f1.tar.bz2 spack-e1848c1d28cd49278bf19ee75d337e2d2b8b77f1.tar.xz spack-e1848c1d28cd49278bf19ee75d337e2d2b8b77f1.zip |
Merge pull request #624 from davydden/parmetis_gnu
fix parmetis on Ubuntu with GNU compilers by linking to lm
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/parmetis/link-to-lm.patch | 14 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/parmetis/package.py | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/parmetis/link-to-lm.patch b/var/spack/repos/builtin/packages/parmetis/link-to-lm.patch new file mode 100644 index 0000000000..faa809231e --- /dev/null +++ b/var/spack/repos/builtin/packages/parmetis/link-to-lm.patch @@ -0,0 +1,14 @@ +diff --git a/libparmetis/CMakeLists.txt b/libparmetis/CMakeLists.txt +index 9cfc8a7..dfc0125 100644 +--- a/libparmetis/CMakeLists.txt ++++ b/libparmetis/CMakeLists.txt +@@ -5,7 +5,7 @@ file(GLOB parmetis_sources *.c) + # Create libparmetis + add_library(parmetis ${ParMETIS_LIBRARY_TYPE} ${parmetis_sources}) + # Link with metis and MPI libraries. +-target_link_libraries(parmetis metis ${MPI_LIBRARIES}) ++target_link_libraries(parmetis metis ${MPI_LIBRARIES} "-lm") + set_target_properties(parmetis PROPERTIES LINK_FLAGS "${MPI_LINK_FLAGS}") + + install(TARGETS parmetis + diff --git a/var/spack/repos/builtin/packages/parmetis/package.py b/var/spack/repos/builtin/packages/parmetis/package.py index c691cf4191..bc71fb7299 100644 --- a/var/spack/repos/builtin/packages/parmetis/package.py +++ b/var/spack/repos/builtin/packages/parmetis/package.py @@ -52,6 +52,8 @@ class Parmetis(Package): # https://bitbucket.org/petsc/pkg-parmetis/commits/82409d68aa1d6cbc70740d0f35024aae17f7d5cb/raw/ patch('pkg-parmetis-82409d68aa1d6cbc70740d0f35024aae17f7d5cb.patch') + patch('link-to-lm.patch') + depends_on('gdb', when='+gdb') def install(self, spec, prefix): |