aboutsummaryrefslogtreecommitdiff
path: root/reproduce/src/make/initialize.mk
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2018-11-28 01:24:42 +0000
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2018-11-28 01:30:01 +0000
commita25c2cf65c78fd504ec3cbf6f007b4011ba248a1 (patch)
treec24bb315acbb9e555a3c15e1d49dd220d4ca530c /reproduce/src/make/initialize.mk
parentd4138e68e7160ec1242c08da83c58e2d9097f222 (diff)
Better control of shared library linking
Until now we weren't explicity writing the full path of the dynamic libraries necessary for linking a program. But now with `-Wl,-rpath=$(ildir)' we ensure that the linker keeps the address of the dynamic libraries necessary for linking at linking time, not running time. Also, `pkg-config' is also built when preparing the basics. Several other minor corrections were made thanks to the great help of Raúl Infante Sainz.
Diffstat (limited to 'reproduce/src/make/initialize.mk')
-rw-r--r--reproduce/src/make/initialize.mk23
1 files changed, 13 insertions, 10 deletions
diff --git a/reproduce/src/make/initialize.mk b/reproduce/src/make/initialize.mk
index 3453d4e..9141b30 100644
--- a/reproduce/src/make/initialize.mk
+++ b/reproduce/src/make/initialize.mk
@@ -42,6 +42,7 @@ texbdir = $(texdir)/build
tikzdir = $(texbdir)/tikz
mtexdir = $(texdir)/macros
pconfdir = reproduce/config/pipeline
+installdir = $(BDIR)/dependencies/installed
# --------- Delete for no Gnuastro ---------
gconfdir = reproduce/config/gnuastro
# ------------------------------------------
@@ -72,12 +73,12 @@ curdir := $(shell echo $$(pwd))
# environment variables, we are setting it to prefer the software we have
# build here.
.ONESHELL:
-.SHELLFLAGS = -ec
-SHELL := .local/bin/bash
-PATH := $(curdir)/.local/bin
-LD_LIBRARY_PATH := $(curdir)/.local/lib
-LDFLAGS := -L$(curdir)/.local/lib
-CPPFLAGS := -I$(curdir)/.local/include
+.SHELLFLAGS = -ec
+export PATH := $(installdir)/bin
+export LD_LIBRARY_PATH := $(installdir)/lib
+export LDFLAGS := -L$(installdir)/lib
+export SHELL := $(installdir)/bin/bash
+export CPPFLAGS := -I$(installdir)/include
@@ -197,18 +198,20 @@ $(mtexdir)/initialize.tex: | $(mtexdir)
$(call pvcheck, curl, $(curl-version), cURL, curlversion)
$(call pvcheck, diff, $(diffutils-version), GNU Diffutils, \
diffutilsversion)
- $(call pvcheck, find, $(findutils-version), GNU Findutils, \
+ $(call pvcheck, find, $(findutils-version), GNU Findutils, \
findutilsversion)
$(call pvcheck, gs, $(ghostscript-version), GPL Ghostscript, \
- ghostscriptversion)
+ ghostscriptversion)
$(call pvcheck, git, $(git-version), Git, gitversion)
$(call pvcheck, grep, $(grep-version), GNU Grep, grepversion)
- $(call pvcheck, libtool, $(libtool-version), GNU Libtool, \
+ $(call pvcheck, glibtool, $(libtool-version), GNU Libtool, \
libtoolversion)
$(call pvcheck, ls, $(coreutils-version), GNU Coreutils, \
coreutilsversion)
$(call pvcheck, lzip, $(lzip-version), Lzip, lzipversion)
$(call pvcheck, make, $(make-version), GNU Make, makeversion)
+ $(call pvcheck, pkg-config, $(pkgconfig-version), pkg-config, \
+ pkgconfigversion)
$(call pvcheck, sed, $(sed-version), GNU SED, sedversion)
$(call pvcheck, tar, $(tar-version), GNU Tar, tarversion)
$(call pvcheck, which, $(which-version), GNU Which, whichversion)
@@ -216,7 +219,7 @@ $(mtexdir)/initialize.tex: | $(mtexdir)
# --------- Delete for no Gnuastro ---------
$(call pvcheck, astnoisechisel, $(gnuastro-version), Gnuastro, \
- gnuastroversion)
+ gnuastroversion)
# ------------------------------------------
# Bzip2 prints its version in standard error, not standard output!