mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
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>
This commit is contained in:
parent
567627700a
commit
6331b9c24a
@ -265,6 +265,8 @@ endif # BR2_CCACHE
|
|||||||
# used. However, we should not add the toolchain wrapper for them, and they
|
# 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,
|
# match the *cc-* pattern. Therefore, an additional case is added for *-ar,
|
||||||
# *-ranlib and *-nm.
|
# *-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.
|
# Avoid that a .br_real is symlinked a second time.
|
||||||
# Also create <arch>-linux-<tool> symlinks.
|
# Also create <arch>-linux-<tool> symlinks.
|
||||||
define HOST_GCC_INSTALL_WRAPPER_AND_SIMPLE_SYMLINKS
|
define HOST_GCC_INSTALL_WRAPPER_AND_SIMPLE_SYMLINKS
|
||||||
@ -276,7 +278,7 @@ define HOST_GCC_INSTALL_WRAPPER_AND_SIMPLE_SYMLINKS
|
|||||||
*-ar|*-ranlib|*-nm) \
|
*-ar|*-ranlib|*-nm) \
|
||||||
ln -snf $$i $(ARCH)-linux$${i##$(GNU_TARGET_NAME)}; \
|
ln -snf $$i $(ARCH)-linux$${i##$(GNU_TARGET_NAME)}; \
|
||||||
;; \
|
;; \
|
||||||
*cc|*cc-*|*++|*++-*|*cpp) \
|
*cc|*cc-*|*++|*++-*|*cpp|*-gfortran) \
|
||||||
rm -f $$i.br_real; \
|
rm -f $$i.br_real; \
|
||||||
mv $$i $$i.br_real; \
|
mv $$i $$i.br_real; \
|
||||||
ln -sf toolchain-wrapper $$i; \
|
ln -sf toolchain-wrapper $$i; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user