add a know to enable/disable building a shared libgcc
This commit is contained in:
parent
ea85352bfb
commit
6b48b48034
@ -126,3 +126,9 @@ config BR2_INSTALL_OBJC
|
|||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Build/install Objective-C compiler and runtime?
|
Build/install Objective-C compiler and runtime?
|
||||||
|
|
||||||
|
config BR2_GCC_SHARED_LIBGCC
|
||||||
|
bool "Build/install a shared libgcc?"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Build/install a shared libgcc library
|
||||||
|
@ -55,6 +55,12 @@ ifeq ($(BR2_INSTALL_FORTRAN),y)
|
|||||||
TARGET_LANGUAGES:=$(TARGET_LANGUAGES),fortran
|
TARGET_LANGUAGES:=$(TARGET_LANGUAGES),fortran
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_GCC_SHARED_LIBGCC),y)
|
||||||
|
GCC_SHARED_LIBGCC:=--enable-shared
|
||||||
|
else
|
||||||
|
GCC_SHARED_LIBGCC:=--disable-shared
|
||||||
|
endif
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
# build the first pass gcc compiler
|
# build the first pass gcc compiler
|
||||||
@ -119,11 +125,11 @@ $(GCC_BUILD_DIR1)/.configured: $(GCC_DIR)/.patched
|
|||||||
--host=$(GNU_HOST_NAME) \
|
--host=$(GNU_HOST_NAME) \
|
||||||
--target=$(REAL_GNU_TARGET_NAME) \
|
--target=$(REAL_GNU_TARGET_NAME) \
|
||||||
--enable-languages=c \
|
--enable-languages=c \
|
||||||
--disable-shared \
|
|
||||||
--with-sysroot=$(TOOL_BUILD_DIR)/uClibc_dev/ \
|
--with-sysroot=$(TOOL_BUILD_DIR)/uClibc_dev/ \
|
||||||
--disable-__cxa_atexit \
|
--disable-__cxa_atexit \
|
||||||
--enable-target-optspace \
|
--enable-target-optspace \
|
||||||
--with-gnu-ld \
|
--with-gnu-ld \
|
||||||
|
--disable-shared \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
$(THREADS) \
|
$(THREADS) \
|
||||||
$(MULTILIB) \
|
$(MULTILIB) \
|
||||||
@ -175,10 +181,10 @@ $(GCC_BUILD_DIR2)/.configured: $(GCC_DIR)/.patched $(STAGING_DIR)/lib/libc.a
|
|||||||
--host=$(GNU_HOST_NAME) \
|
--host=$(GNU_HOST_NAME) \
|
||||||
--target=$(REAL_GNU_TARGET_NAME) \
|
--target=$(REAL_GNU_TARGET_NAME) \
|
||||||
--enable-languages=$(TARGET_LANGUAGES) \
|
--enable-languages=$(TARGET_LANGUAGES) \
|
||||||
--enable-shared \
|
|
||||||
--disable-__cxa_atexit \
|
--disable-__cxa_atexit \
|
||||||
--enable-target-optspace \
|
--enable-target-optspace \
|
||||||
--with-gnu-ld \
|
--with-gnu-ld \
|
||||||
|
$(GCC_SHARED_LIBGCC) \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
$(THREADS) \
|
$(THREADS) \
|
||||||
$(MULTILIB) \
|
$(MULTILIB) \
|
||||||
@ -264,7 +270,7 @@ endif
|
|||||||
touch -c $(TARGET_DIR)/lib/libgcc_s.so.1
|
touch -c $(TARGET_DIR)/lib/libgcc_s.so.1
|
||||||
|
|
||||||
gcc: uclibc-configured binutils gcc_initial $(LIBFLOAT_TARGET) uclibc \
|
gcc: uclibc-configured binutils gcc_initial $(LIBFLOAT_TARGET) uclibc \
|
||||||
$(TARGET_DIR)/lib/libgcc_s.so.1 $(GCC_BUILD_DIR2)/.installed $(GCC_TARGETS)
|
$(GCC_BUILD_DIR2)/.installed $(GCC_TARGETS)
|
||||||
|
|
||||||
gcc-source: $(DL_DIR)/$(GCC_SOURCE)
|
gcc-source: $(DL_DIR)/$(GCC_SOURCE)
|
||||||
|
|
||||||
@ -294,11 +300,11 @@ $(GCC_BUILD_DIR3)/.configured: $(GCC_BUILD_DIR2)/.installed
|
|||||||
--host=$(REAL_GNU_TARGET_NAME) \
|
--host=$(REAL_GNU_TARGET_NAME) \
|
||||||
--target=$(REAL_GNU_TARGET_NAME) \
|
--target=$(REAL_GNU_TARGET_NAME) \
|
||||||
--enable-languages=$(TARGET_LANGUAGES) \
|
--enable-languages=$(TARGET_LANGUAGES) \
|
||||||
--enable-shared \
|
|
||||||
--with-gxx-include-dir=/usr/include/c++ \
|
--with-gxx-include-dir=/usr/include/c++ \
|
||||||
--disable-__cxa_atexit \
|
--disable-__cxa_atexit \
|
||||||
--enable-target-optspace \
|
--enable-target-optspace \
|
||||||
--with-gnu-ld \
|
--with-gnu-ld \
|
||||||
|
$(GCC_SHARED_LIBGCC) \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
$(THREADS) \
|
$(THREADS) \
|
||||||
$(MULTILIB) \
|
$(MULTILIB) \
|
||||||
|
Loading…
Reference in New Issue
Block a user