mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
package/gcc: fix fortran support
Fortran depends on libquadmath when available, make the buildroot toolchain option depends on this new hidden symbol, [Vincent: only do "HOST_GCC_FINAL_USR_LIBS += libquadmath" for i386 and x86_64, otherwise it will fail saying "libquadmath.a: file not found"] 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
7de668a1de
commit
5077bdd939
@ -118,8 +118,15 @@ config BR2_TOOLCHAIN_BUILDROOT_CXX
|
|||||||
C++ language and you want C++ libraries to be installed on
|
C++ language and you want C++ libraries to be installed on
|
||||||
your target system.
|
your target system.
|
||||||
|
|
||||||
|
comment "Fortran support needs a toolchain w/ wchar"
|
||||||
|
depends on BR2_TOOLCHAIN_HAS_LIBQUADMATH
|
||||||
|
depends on !BR2_USE_WCHAR # libquadmath
|
||||||
|
|
||||||
config BR2_TOOLCHAIN_BUILDROOT_FORTRAN
|
config BR2_TOOLCHAIN_BUILDROOT_FORTRAN
|
||||||
bool "Enable Fortran support"
|
bool "Enable Fortran support"
|
||||||
|
# on architecture building libquadmath, wchar is required
|
||||||
|
depends on !BR2_TOOLCHAIN_HAS_LIBQUADMATH || \
|
||||||
|
(BR2_TOOLCHAIN_HAS_LIBQUADMATH && BR2_USE_WCHAR)
|
||||||
help
|
help
|
||||||
Enable this option if you want your toolchain to support the
|
Enable this option if you want your toolchain to support the
|
||||||
Fortran language and you want Fortran libraries to be
|
Fortran language and you want Fortran libraries to be
|
||||||
|
@ -163,6 +163,10 @@ endif
|
|||||||
|
|
||||||
ifeq ($(BR2_TOOLCHAIN_BUILDROOT_FORTRAN),y)
|
ifeq ($(BR2_TOOLCHAIN_BUILDROOT_FORTRAN),y)
|
||||||
HOST_GCC_FINAL_USR_LIBS += libgfortran
|
HOST_GCC_FINAL_USR_LIBS += libgfortran
|
||||||
|
# fortran needs quadmath on x86 and x86_64
|
||||||
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBQUADMATH),y)
|
||||||
|
HOST_GCC_FINAL_USR_LIBS += libquadmath
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_GCC_ENABLE_OPENMP),y)
|
ifeq ($(BR2_GCC_ENABLE_OPENMP),y)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user