aboutsummaryrefslogtreecommitdiff
path: root/reproduce/src/make/dependencies.mk
diff options
context:
space:
mode:
authorRaul Infante-Sainz <infantesainz@gmail.com>2019-03-27 17:16:21 +0000
committerRaul Infante-Sainz <infantesainz@gmail.com>2019-03-27 17:16:21 +0000
commit12648438cf9f75738cef045fd02f4093eab7990d (patch)
tree15c7f706aee249e246139a3c52fa2102e0a2df79 /reproduce/src/make/dependencies.mk
parent7d1d6f88fb28630cc581ea41c487b2b0c0da269f (diff)
GCC is now built on a Mac, not yet ATLAS
Until now, we were simply using the host's GCC for Mac systems. But we found that except for a single step (to fixing `rpath'), it works on Mac!!! So, GCC is now part of the Mac build as well. However, we are still having some problems in building ATLAS on Mac. It works on GNU/Linux, but not in Mac. So for the time being (just temporarily), we are avoiding ATLAS (and thus Scipy) on Mac systems. We just filed an issue on the ATLAS discussion list to hopefully fix the problem soon.
Diffstat (limited to 'reproduce/src/make/dependencies.mk')
-rw-r--r--reproduce/src/make/dependencies.mk19
1 files changed, 17 insertions, 2 deletions
diff --git a/reproduce/src/make/dependencies.mk b/reproduce/src/make/dependencies.mk
index d797cdb..02fe18a 100644
--- a/reproduce/src/make/dependencies.mk
+++ b/reproduce/src/make/dependencies.mk
@@ -44,7 +44,10 @@ ilidir = $(BDIR)/dependencies/installed/lib/built
# Define the top-level programs to build (installed in `.local/bin').
top-level-programs = astnoisechisel flock metastore unzip zip
-top-level-libraries = atlas freetype
+ifneq ($(on_mac_os),yes)
+withatlas = atlas
+endif
+top-level-libraries = freetype $(withatlas)
all: $(ddir)/texlive-versions.tex \
$(foreach p, $(top-level-programs), $(ibdir)/$(p)) \
$(foreach p, $(top-level-libraries), $(ilidir)/$(p))
@@ -260,6 +263,11 @@ $(ilidir)/libtiff: $(tdir)/tiff-$(libtiff-version).tar.gz \
$(ilidir)/atlas: $(tdir)/atlas-$(atlas-version).tar.bz2 \
$(tdir)/lapack-$(lapack-version).tar.gz
+ if [ x$(on_mac_os) = xyes ]; then
+ echo; echo;
+ echo "ATLAS build instructions not yet working on Mac"
+ exit 1
+ fi
# Get the operating system specific features (how to get
# CPU frequency and the library suffixes). To make the steps
@@ -294,7 +302,6 @@ $(ilidir)/atlas: $(tdir)/atlas-$(atlas-version).tar.bz2 \
# The linking step here doesn't recognize the `-Wl' in the
# `rpath_command'.
export LDFLAGS=-L$(ildir)
-
cd $(ddir) \
&& tar xf $< \
&& cd ATLAS \
@@ -305,6 +312,14 @@ $(ilidir)/atlas: $(tdir)/atlas-$(atlas-version).tar.bz2 \
--with-netlib-lapack-tarfile=$(word 2, $^) \
--cripple-atlas-performance \
-Fa alg -fPIC --shared \
+ -C xc $(ibdir)/gcc \
+ -C gc $(ibdir)/gcc \
+ -C if $(ibdir)/gfortran \
+ -C ic $(ibdir)/gcc \
+ -C dm $(ibdir)/gcc \
+ -C sm $(ibdir)/gcc \
+ -C dk $(ibdir)/gcc \
+ -C sk $(ibdir)/gcc \
--prefix=$(idir) \
&& make \
&& cd lib && make -f $$sharedmk && cd .. \