aboutsummaryrefslogtreecommitdiff
path: root/reproduce/software/make
diff options
context:
space:
mode:
authorRaul Infante-Sainz <infantesainz@gmail.com>2019-04-16 06:39:31 +0100
committerRaul Infante-Sainz <infantesainz@gmail.com>2019-04-16 06:39:31 +0100
commitc5ccdd7385499369ca0ca9ed2894658bfe235653 (patch)
tree4874db38c1c40b64465627fa825e17c1fded0f9c /reproduce/software/make
parent967c81fa82179fe151a0d589fa922d896b13b1c8 (diff)
CC symbolic link to GCC built after GCC installation
Until now, we did not have CC. This is an obsolete way of calling C Compiler, nowadays it is GCC. However, there could be some software that is still using this convention (for example, `netpbm'). With this commit, we make the symbolic link `cc' pointing to the installed `gcc'.
Diffstat (limited to 'reproduce/software/make')
-rw-r--r--reproduce/software/make/basic.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/reproduce/software/make/basic.mk b/reproduce/software/make/basic.mk
index cfa05d2..4fc104d 100644
--- a/reproduce/software/make/basic.mk
+++ b/reproduce/software/make/basic.mk
@@ -854,6 +854,7 @@ $(ibidir)/gcc: $(gcc-prerequisites) \
$(call makelink,gcc); \
$(call makelink,g++,mandatory); \
$(call makelink,gfortran,mandatory); \
+ ln -sf $(which gcc) $(ibdir)/cc; \
ccinfo=$$(gcc --version | awk 'NR==1'); \
echo "C compiler (""$$ccinfo"")" > $@; \
else \
@@ -899,5 +900,6 @@ $(ibidir)/gcc: $(gcc-prerequisites) \
fi; \
done; \
fi \
+ ln -sf $(ibdir)/gcc $(ibdir)/cc; \
&& echo "GNU Compiler Collection (GCC) $(gcc-version)" > $@; \
fi