git: Don't link against -lrt on Darwin (#1877)

There is no librt on Darwin, and it's not necessary either.
This commit is contained in:
Erik Schnetter 2016-10-02 21:37:45 -04:00 committed by Todd Gamblin
parent 28b48f3e1a
commit b22956bab2

View File

@ -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 @@ def install(self, spec, prefix):
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")