aboutsummaryrefslogtreecommitdiff
path: root/reproduce/software/make/basic.mk
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2019-07-27 11:44:13 +0100
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2019-07-27 11:44:13 +0100
commit8847155563e25aa70663413f6a8dc9657ca79993 (patch)
treefe89e7044aeaac7f597bc6fd5b96af1ed528401b /reproduce/software/make/basic.mk
parent33820ab02bd39faa10fe634dfd0de85764e1e96e (diff)
DYLD_LIBRARY_PATH also fixed for macOS systems
Until now we were only setting the `LD_LIBRARY_PATH' environment variable for GNU/Linux systems. But macOS systems use the `DYLD_LIBRARY_PATH'. With this commit, for better control over the environment, we are also fixing `DYLD_LIBRARY_PATH' in all the places that we are setting the general environment variables.
Diffstat (limited to 'reproduce/software/make/basic.mk')
-rw-r--r--reproduce/software/make/basic.mk13
1 files changed, 7 insertions, 6 deletions
diff --git a/reproduce/software/make/basic.mk b/reproduce/software/make/basic.mk
index e544234..bab37ed 100644
--- a/reproduce/software/make/basic.mk
+++ b/reproduce/software/make/basic.mk
@@ -51,13 +51,14 @@ syspath := $(PATH)
# As we build more programs, we want to use this project's built programs
# and libraries, not the host's.
-export CCACHE_DISABLE := 1
-export PATH := $(ibdir):$(PATH)
-export PKG_CONFIG_PATH := $(ildir)/pkgconfig
+export CCACHE_DISABLE := 1
+export PATH := $(ibdir):$(PATH)
+export PKG_CONFIG_PATH := $(ildir)/pkgconfig
export PKG_CONFIG_LIBDIR := $(ildir)/pkgconfig
-export LD_LIBRARY_PATH := $(ildir):$(LD_LIBRARY_PATH)
-export CPPFLAGS := -I$(idir)/include $(CPPFLAGS)
-export LDFLAGS := $(rpath_command) -L$(ildir) $(LDFLAGS)
+export CPPFLAGS := -I$(idir)/include $(CPPFLAGS)
+export LD_LIBRARY_PATH := $(ildir):$(LD_LIBRARY_PATH)
+export LDFLAGS := $(rpath_command) -L$(ildir) $(LDFLAGS)
+export DYLD_LIBRARY_PATH := $(ildir):$(DYLD_LIBRARY_PATH)
# Define the top-level basic programs (that don't depend on any other).
top-level-programs = low-level-links gcc