From 4b9d4883874d45cacbda86ff7d7d5c43f1e23475 Mon Sep 17 00:00:00 2001 From: saihttam Date: Tue, 18 Oct 2016 18:56:00 +0200 Subject: [PATCH] Add option on OSX to use macports (#1675) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 82f425a88..ea08acafd 100644 --- a/Makefile +++ b/Makefile @@ -43,8 +43,8 @@ endif # it is useful for pip install compiling-on-the-fly OS := $(shell uname) ifeq ($(OS), Darwin) -export CC = $(if $(shell which gcc-6),gcc-6,clang) -export CXX = $(if $(shell which g++-6),g++-6,clang++) +export CC = $(if $(shell which gcc-6),gcc-6,$(if $(shell which gcc-mp-6), gcc-mp-6, clang)) +export CXX = $(if $(shell which g++-6),g++-6,$(if $(shell which g++-mp-6),g++-mp-6, clang++)) endif export LDFLAGS= -pthread -lm $(ADD_LDFLAGS) $(DMLC_LDFLAGS) $(PLUGIN_LDFLAGS)