Skip to content

Commit

Permalink
Compiling on Apple M1 (aarch64)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Boudreau authored and gboudreau committed Jan 23, 2021
1 parent b77bd3a commit bbfcaa5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions makefiles/Makefile.third_party.unix.mk
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ install_cbc: dependencies/install/lib/libCbc.a
CBC_SRCDIR = dependencies/sources/Cbc-$(CBC_TAG)
dependencies/install/lib/libCbc.a: install_cgl $(CBC_SRCDIR)
cd $(CBC_SRCDIR) && $(SET_COMPILER) ./configure \
--build=unknown-unknown-linux \
--prefix=$(OR_ROOT_FULL)/dependencies/install \
--enable-static --disable-shared \
--disable-debug \
Expand Down Expand Up @@ -434,6 +435,7 @@ install_cgl: dependencies/install/lib/libCgl.a
CGL_SRCDIR = dependencies/sources/Cgl-$(CGL_TAG)
dependencies/install/lib/libCgl.a: install_clp $(CGL_SRCDIR)
cd $(CGL_SRCDIR) && $(SET_COMPILER) ./configure \
--build=unknown-unknown-linux \
--prefix=$(OR_ROOT_FULL)/dependencies/install \
--enable-static --disable-shared \
--disable-debug \
Expand Down Expand Up @@ -471,6 +473,7 @@ install_clp: dependencies/install/lib/libClp.a
CLP_SRCDIR = dependencies/sources/Clp-$(CLP_TAG)
dependencies/install/lib/libClp.a: install_osi $(CLP_SRCDIR)
cd $(CLP_SRCDIR) && $(SET_COMPILER) ./configure \
--build=unknown-unknown-linux \
--prefix=$(OR_ROOT_FULL)/dependencies/install \
--enable-static --disable-shared \
--disable-debug \
Expand Down Expand Up @@ -510,6 +513,7 @@ install_osi: dependencies/install/lib/libOsi.a
OSI_SRCDIR = dependencies/sources/Osi-$(OSI_TAG)
dependencies/install/lib/libOsi.a: install_coinutils $(OSI_SRCDIR)
cd $(OSI_SRCDIR) && $(SET_COMPILER) ./configure \
--build=unknown-unknown-linux \
--prefix=$(OR_ROOT_FULL)/dependencies/install \
--enable-static --disable-shared \
--disable-debug \
Expand Down Expand Up @@ -549,6 +553,7 @@ COINUTILS_SRCDIR = dependencies/sources/CoinUtils-$(COINUTILS_TAG)
dependencies/install/lib/libCoinUtils.a: $(COINUTILS_SRCDIR) | \
dependencies/install/lib/pkgconfig dependencies/install/include/coin
cd $(COINUTILS_SRCDIR) && $(SET_COMPILER) ./configure \
--build=unknown-unknown-linux \
--prefix=$(OR_ROOT_FULL)/dependencies/install \
--enable-static --disable-shared \
--disable-bzlib \
Expand Down Expand Up @@ -666,14 +671,14 @@ SCIP_LNK = \
$(UNIX_SCIP_DIR)/lib/libscip.a \
$(UNIX_SCIP_DIR)/lib/libnlpi.cppad.a \
$(UNIX_SCIP_DIR)/lib/liblpinone.a \
$(UNIX_SCIP_DIR)/lib/libtpinone-7.0.1.linux.x86_64.gnu.opt.a
$(wildcard $(UNIX_SCIP_DIR)/lib/libtpinone-7.0.1.linux.*.gnu.opt.a)
endif
ifeq ($(PLATFORM),MACOSX)
SCIP_LNK = \
$(UNIX_SCIP_DIR)/lib/libscip.a \
$(UNIX_SCIP_DIR)/lib/libnlpi.cppad.a \
$(UNIX_SCIP_DIR)/lib/liblpinone.a \
$(UNIX_SCIP_DIR)/lib/libtpitny-7.0.1.darwin.x86_64.gnu.opt.a
$(wildcard $(UNIX_SCIP_DIR)/lib/libtpitny-7.0.1.darwin.*.gnu.opt.a)
endif

DEPENDENCIES_INC += $(SCIP_INC)
Expand Down

0 comments on commit bbfcaa5

Please sign in to comment.