aboutsummaryrefslogtreecommitdiff
path: root/reproduce/software/make
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2019-07-04 18:29:40 +0100
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2019-07-04 18:29:40 +0100
commit18075553ffe57be314b9f4804a56055acfdb3b48 (patch)
tree112ea59bfe0e1df9e4f9462a665ddcd6d7bab266 /reproduce/software/make
parent5c30502334bb662645c4f857c0ddba0119d0d094 (diff)
C and Fortran compiler environment set in high-level.mk
Until now, we weren't explicitly setting the C and Fortran compiler environment variables (`CC' and `F77'). As a result, if the user's system had already set them, there would be a problem (and the system's compilers would be used). With this commit, we are explicitly setting these two environment variables at the start of `high-level.mk'. This bug was found after a discussion with Elham Saremi.
Diffstat (limited to 'reproduce/software/make')
-rw-r--r--reproduce/software/make/high-level.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/reproduce/software/make/high-level.mk b/reproduce/software/make/high-level.mk
index 90fc060..3cf3fb9 100644
--- a/reproduce/software/make/high-level.mk
+++ b/reproduce/software/make/high-level.mk
@@ -68,8 +68,10 @@ all: $(foreach p, $(top-level-programs), $(ibidir)/$(p)) \
.SHELLFLAGS := --noprofile --norc -ec
export CCACHE_DISABLE := 1
export PATH := $(ibdir)
+export CC := $(ibdir)/gcc
export SHELL := $(ibdir)/bash
export CPPFLAGS := -I$(idir)/include
+export F77 := $(ibdir)/gfortran
export PKG_CONFIG_PATH := $(ildir)/pkgconfig
export PKG_CONFIG_LIBDIR := $(ildir)/pkgconfig
export LD_RUN_PATH := $(ildir):$(il64dir)