aboutsummaryrefslogtreecommitdiff
path: root/reproduce/src/make/dependencies-build-rules.mk
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2018-11-29 15:17:16 +0000
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2018-11-29 16:25:42 +0000
commit5844981147a4af48fc3ffb8d2794487f0236b335 (patch)
tree83d8b8fe676bb32cf58c8aaab5f6abaef23159c5 /reproduce/src/make/dependencies-build-rules.mk
parent6a24c58cf13129766b64eca8bbdec678e68b6d4e (diff)
Ignoring building of GCC for pipeline
GNU Binutils (which provides the GNU Linker) is not ported to Mac OS systems. GCC also takes a very long time to build, and if we are to still have linking problems with LLVM's linker, it would be better to just ignore GCC also and use the system's C compiler and linker together. So for the time being, GCC isn't a main target of the basic dependencies and won't be installed. But we have kept the rules that were checked on a GNU/Linux operating system.
Diffstat (limited to 'reproduce/src/make/dependencies-build-rules.mk')
-rw-r--r--reproduce/src/make/dependencies-build-rules.mk22
1 files changed, 19 insertions, 3 deletions
diff --git a/reproduce/src/make/dependencies-build-rules.mk b/reproduce/src/make/dependencies-build-rules.mk
index eafa29c..b7d6c1a 100644
--- a/reproduce/src/make/dependencies-build-rules.mk
+++ b/reproduce/src/make/dependencies-build-rules.mk
@@ -48,17 +48,33 @@
# 4: Extra configuration options.
# 5: Extra options/arguments to pass to Make.
# 6: Step to run between `make' and `make install': usually `make check'.
+#
+# NOTE: Unfortunately the configure script of `zlib' doesn't recognize
+# `SHELL'. So we'll have to remove it from the call to the configure
+# script.
gbuild = if [ x$(static_build) = xyes ] && [ $(3)x = staticx ]; then \
export LDFLAGS="$$LDFLAGS -static"; \
fi; \
check="$(6)"; \
if [ x"$$check" = x ]; then check="echo Skipping-check"; fi; \
- if [ -f $(ibdir)/bash ]; then shellop="SHELL=$(ibdir)/bash"; \
+ cd $(ddir); rm -rf $(2); tar xf $(1); cd $(2); \
+ \
+ if [ -f $(ibdir)/bash ]; then \
+ sed configure -e's|\#\! /bin/sh|\#\! $(ibdir)/bash|' \
+ -e's|\#\!/bin/sh|\#\! $(ibdir)/bash|'> configure-t; \
+ mv configure-t configure; \
+ chmod +x configure; \
+ shellop="SHELL=$(ibdir)/bash"; \
elif [ -f /bin/bash ]; then shellop="SHELL=/bin/bash"; \
else shellop="SHELL=/bin/sh"; \
fi; \
- cd $(ddir) && rm -rf $(2) && tar xf $(1) && cd $(2) && \
- ./configure $(4) "$$shellop" --prefix=$(idir) && \
+ \
+ if [ x"$(2)" = x"zlib-$(zlib-version)" ]; then \
+ configop="--prefix=$(idir)"; \
+ else configop="$$shellop --prefix=$(idir)"; \
+ fi; \
+ \
+ ./configure $(4) $$configop && \
make "$$shellop" $(5) && \
$$check && \
make "$$shellop" install && \