From 289679bab09b27d0f0d88967a5edc1212e2ea348 Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Fri, 8 Nov 2019 12:09:42 +0000 Subject: Minor corrections applied in software builds While working on a different branch to build the GNU C Library, I noticed a few places in the template that need corrections which are now applied: 1. A new-line character after the "C compiler works" notice at the start of the configure script. 2. Removing possible `::' in the `LD_LIBRARY_PATH' definition of `basic.mk'. Note that its not necessary in the other steps because we don't use any outside-defined `LD_LIBRARY_PATH'. 3. Building GMP for C++ and also with `--enable-fat'. 4. Removing the unpacked Perl tarball directory after its installation. --- reproduce/software/make/basic.mk | 9 +++++++-- reproduce/software/make/python.mk | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'reproduce/software/make') diff --git a/reproduce/software/make/basic.mk b/reproduce/software/make/basic.mk index c5b4ca5..bf42808 100644 --- a/reproduce/software/make/basic.mk +++ b/reproduce/software/make/basic.mk @@ -57,8 +57,9 @@ export PATH := $(ibdir):$(PATH) export PKG_CONFIG_PATH := $(ildir)/pkgconfig export PKG_CONFIG_LIBDIR := $(ildir)/pkgconfig export CPPFLAGS := -I$(idir)/include $(CPPFLAGS) -export LD_LIBRARY_PATH := $(ildir):$(LD_LIBRARY_PATH) export LDFLAGS := $(rpath_command) -L$(ildir) $(LDFLAGS) +export LD_LIBRARY_PATH := $(shell echo $(ildir):$(LD_LIBRARY_PATH) \ + | sed -e's/::/:/g') # RPATH is automatically written in macOS, so `DYLD_LIBRARY_PATH' is # ultimately redundant. But on some systems, even having a single value @@ -900,7 +901,8 @@ $(ibidir)/git: $(ibidir)/curl \ $(ibidir)/gmp: | $(ibidir)/m4 \ $(ibidir)/coreutils \ $(tdir)/gmp-$(gmp-version).tar.lz - $(call gbuild, gmp-$(gmp-version), static, , , make check) \ + $(call gbuild, gmp-$(gmp-version), static, \ + --enable-cxx --enable-fat, ,make check) \ && echo "GNU Multiple Precision Arithmetic Library $(gmp-version)" > $@ # On Mac OS, libtool does different things, so to avoid confusion, we'll @@ -1059,6 +1061,9 @@ $(ibidir)/perl: | $(ibidir)/coreutils \ -Dldflags="$$LDFLAGS" \ && make SHELL=$(ibdir)/bash -j$(numthreads) \ && make SHELL=$(ibdir)/bash install \ + && cd .. \ + && rm -rf perl-$(perl-version) \ + && cd $$topdir \ && echo "Perl $(perl-version)" > $@ diff --git a/reproduce/software/make/python.mk b/reproduce/software/make/python.mk index dc5e4f0..dfa65b5 100644 --- a/reproduce/software/make/python.mk +++ b/reproduce/software/make/python.mk @@ -35,7 +35,7 @@ # have found several other Python-related environment variables on some # systems which might interfere. To be safe, we are removing all their # values. -export PYTHONPATH := $(installdir)/lib/python/site-packages +export PYTHONPATH := $(idir)/lib/python/site-packages export PYTHONPATH2 := $(PYTHONPATH) export PYTHONPATH3 := $(PYTHONPATH) export _LMFILES_ := @@ -306,7 +306,7 @@ $(ibidir)/python: $(ibidir)/libffi \ if [ x$(on_mac_os) = xyes ]; then \ export CC=clang; \ export CXX=clang++; \ - fi; echo; echo "$@: HERE"; echo;\ + fi; \ $(call gbuild, Python-$(python-version),, \ --without-ensurepip \ --with-system-ffi \ -- cgit v1.2.1