From b22956bab2646ae52e118c5791a58cf46003bef8 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Sun, 2 Oct 2016 21:37:45 -0400 Subject: git: Don't link against -lrt on Darwin (#1877) There is no librt on Darwin, and it's not necessary either. --- var/spack/repos/builtin/packages/git/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/git/package.py b/var/spack/repos/builtin/packages/git/package.py index a687b2bb35..ac97ad392b 100644 --- a/var/spack/repos/builtin/packages/git/package.py +++ b/var/spack/repos/builtin/packages/git/package.py @@ -22,6 +22,7 @@ # License along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ############################################################################## +import sys from spack import * @@ -79,5 +80,8 @@ class Git(Package): which('autoreconf')('-i') configure(*configure_args) + if sys.platform == "darwin": + # Don't link with -lrt; the system has no (and needs no) librt + filter_file(r' -lrt$', '', 'Makefile') make() make("install") -- cgit v1.2.3-60-g2f50