summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Martin <s.martin49@gmail.com>2016-07-01 18:29:07 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-07-01 22:55:05 +0200
commit6331b9c24aac3fe6c032de5dd1f8e84d355dbe02 (patch)
tree01835d07a634f892dd6a73831c8f2f1407fead28
parent567627700a26f4a3a5f835bd113afeb8f4a9e10d (diff)
downloadbuildroot-6331b9c24aac3fe6c032de5dd1f8e84d355dbe02.tar.gz
buildroot-6331b9c24aac3fe6c032de5dd1f8e84d355dbe02.zip
package/gcc: wrap gfortran
gfortran supports all options supported by gcc, so it can and should be called via the toolchain wrapper. Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/gcc/gcc.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk
index 6e1c02de93..a796f473ad 100644
--- a/package/gcc/gcc.mk
+++ b/package/gcc/gcc.mk
@@ -265,6 +265,8 @@ endif # BR2_CCACHE
# used. However, we should not add the toolchain wrapper for them, and they
# match the *cc-* pattern. Therefore, an additional case is added for *-ar,
# *-ranlib and *-nm.
+# According to gfortran manpage, it supports all options supported by gcc, so
+# add gfortran to the list of the program called via the Buildroot wrapper.
# Avoid that a .br_real is symlinked a second time.
# Also create <arch>-linux-<tool> symlinks.
define HOST_GCC_INSTALL_WRAPPER_AND_SIMPLE_SYMLINKS
@@ -276,7 +278,7 @@ define HOST_GCC_INSTALL_WRAPPER_AND_SIMPLE_SYMLINKS
*-ar|*-ranlib|*-nm) \
ln -snf $$i $(ARCH)-linux$${i##$(GNU_TARGET_NAME)}; \
;; \
- *cc|*cc-*|*++|*++-*|*cpp) \
+ *cc|*cc-*|*++|*++-*|*cpp|*-gfortran) \
rm -f $$i.br_real; \
mv $$i $$i.br_real; \
ln -sf toolchain-wrapper $$i; \
OpenPOWER on IntegriCloud