mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 05:06:39 +00:00
- add gfortran support
This commit is contained in:
parent
1c0bd351ad
commit
df03c0df98
@ -127,8 +127,16 @@ config BR2_INSTALL_OBJC
|
|||||||
help
|
help
|
||||||
Build/install Objective-C compiler and runtime?
|
Build/install Objective-C compiler and runtime?
|
||||||
|
|
||||||
|
config BR2_INSTALL_FORTRAN
|
||||||
|
bool "Build/install Fortran compiler and runtime?"
|
||||||
|
default n
|
||||||
|
select BR2_PACKAGE_LIBMPFR
|
||||||
|
help
|
||||||
|
Build/install Fortran compiler and runtime?
|
||||||
|
|
||||||
config BR2_GCC_SHARED_LIBGCC
|
config BR2_GCC_SHARED_LIBGCC
|
||||||
bool "Build/install a shared libgcc?"
|
bool "Build/install a shared libgcc?"
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
Build/install a shared libgcc library
|
Build/install a shared libgcc library
|
||||||
|
|
||||||
|
@ -51,8 +51,17 @@ ifeq ($(BR2_INSTALL_OBJC),y)
|
|||||||
TARGET_LANGUAGES:=$(TARGET_LANGUAGES),objc
|
TARGET_LANGUAGES:=$(TARGET_LANGUAGES),objc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
TARGET_PREREQ =
|
||||||
|
STAGING_PREREQ= $(STAGING_DIR)/lib/libc.a
|
||||||
|
|
||||||
ifeq ($(BR2_INSTALL_FORTRAN),y)
|
ifeq ($(BR2_INSTALL_FORTRAN),y)
|
||||||
TARGET_LANGUAGES:=$(TARGET_LANGUAGES),fortran
|
TARGET_LANGUAGES:=$(TARGET_LANGUAGES),fortran
|
||||||
|
TARGET_PREREQ += $(TARGET_DIR)/lib/libmpfr.so
|
||||||
|
STAGING_PREREQ+= $(TOOL_BUILD_DIR)/mpfr/lib/libmpfr.a
|
||||||
|
GCC_WITH_TARGET_GMP:=--with-gmp=$(STAGING_DIR)
|
||||||
|
GCC_WITH_TARGET_MPFR:=--with-mpfr=$(STAGING_DIR)
|
||||||
|
GCC_WITH_HOST_GMP=--with-gmp=$(GMP_HOST_DIR)
|
||||||
|
GCC_WITH_HOST_MPFR=--with-mpfr=$(MPFR_HOST_DIR)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_GCC_SHARED_LIBGCC),y)
|
ifeq ($(BR2_GCC_SHARED_LIBGCC),y)
|
||||||
@ -61,6 +70,11 @@ else
|
|||||||
GCC_SHARED_LIBGCC:=--disable-shared
|
GCC_SHARED_LIBGCC:=--disable-shared
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(BR2_ENABLE_LOCALE),y)
|
||||||
|
GCC_ENABLE_CLOCALE:=--disable-clocale
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
# build the first pass gcc compiler
|
# build the first pass gcc compiler
|
||||||
@ -169,7 +183,7 @@ gcc_initial-dirclean:
|
|||||||
# guarantees. mjn3
|
# guarantees. mjn3
|
||||||
|
|
||||||
GCC_BUILD_DIR2:=$(TOOL_BUILD_DIR)/gcc-$(GCC_VERSION)-final
|
GCC_BUILD_DIR2:=$(TOOL_BUILD_DIR)/gcc-$(GCC_VERSION)-final
|
||||||
$(GCC_BUILD_DIR2)/.configured: $(GCC_DIR)/.patched $(STAGING_DIR)/lib/libc.a
|
$(GCC_BUILD_DIR2)/.configured: $(GCC_DIR)/.patched $(STAGING_PREREQ)
|
||||||
mkdir -p $(GCC_BUILD_DIR2)
|
mkdir -p $(GCC_BUILD_DIR2)
|
||||||
# Important! Required for limits.h to be fixed.
|
# Important! Required for limits.h to be fixed.
|
||||||
ln -snf ../include $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/sys-include
|
ln -snf ../include $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/sys-include
|
||||||
@ -184,6 +198,8 @@ $(GCC_BUILD_DIR2)/.configured: $(GCC_DIR)/.patched $(STAGING_DIR)/lib/libc.a
|
|||||||
--disable-__cxa_atexit \
|
--disable-__cxa_atexit \
|
||||||
--enable-target-optspace \
|
--enable-target-optspace \
|
||||||
--with-gnu-ld \
|
--with-gnu-ld \
|
||||||
|
$(GCC_WITH_HOST_GMP) \
|
||||||
|
$(GCC_WITH_HOST_MPFR) \
|
||||||
$(GCC_SHARED_LIBGCC) \
|
$(GCC_SHARED_LIBGCC) \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
$(THREADS) \
|
$(THREADS) \
|
||||||
@ -311,6 +327,8 @@ $(GCC_BUILD_DIR3)/.configured: $(GCC_BUILD_DIR3)/.prepared
|
|||||||
--enable-target-optspace \
|
--enable-target-optspace \
|
||||||
--with-gnu-ld \
|
--with-gnu-ld \
|
||||||
$(GCC_SHARED_LIBGCC) \
|
$(GCC_SHARED_LIBGCC) \
|
||||||
|
$(GCC_WITH_HOST_GMP) \
|
||||||
|
$(GCC_WITH_HOST_MPFR) \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
$(THREADS) \
|
$(THREADS) \
|
||||||
$(MULTILIB) \
|
$(MULTILIB) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user