summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2016-10-02 21:37:45 -0400
committerTodd Gamblin <tgamblin@llnl.gov>2016-10-02 18:37:45 -0700
commitb22956bab2646ae52e118c5791a58cf46003bef8 (patch)
tree897d3d333e6c8c9d616eb3b51a4c555aa2cf535f
parent28b48f3e1a60bd77134951e1311f0e0877f9c66d (diff)
downloadspack-b22956bab2646ae52e118c5791a58cf46003bef8.tar.gz
spack-b22956bab2646ae52e118c5791a58cf46003bef8.tar.bz2
spack-b22956bab2646ae52e118c5791a58cf46003bef8.tar.xz
spack-b22956bab2646ae52e118c5791a58cf46003bef8.zip
git: Don't link against -lrt on Darwin (#1877)
There is no librt on Darwin, and it's not necessary either.
-rw-r--r--var/spack/repos/builtin/packages/git/package.py4
1 files changed, 4 insertions, 0 deletions
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")