add a know to enable/disable building a shared libgcc
authorEric Andersen <andersen@codepoet.org>
Mon, 2 Oct 2006 19:40:44 +0000 (19:40 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 2 Oct 2006 19:40:44 +0000 (19:40 -0000)
toolchain/gcc/Config.in
toolchain/gcc/gcc-uclibc-3.x.mk

index b3df3753cf0294e839738c1cd949f714e059b05f..d60c85c72b93437572621769f9f449d023d2cd11 100644 (file)
@@ -126,3 +126,9 @@ config BR2_INSTALL_OBJC
        default n
        help
            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
index 55cb295a418c99b3f3a594532c107e553a8c88cc..1522ce59256cd579e89890e009842ca33bf95d3d 100644 (file)
@@ -55,6 +55,12 @@ ifeq ($(BR2_INSTALL_FORTRAN),y)
 TARGET_LANGUAGES:=$(TARGET_LANGUAGES),fortran
 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
@@ -119,11 +125,11 @@ $(GCC_BUILD_DIR1)/.configured: $(GCC_DIR)/.patched
                --host=$(GNU_HOST_NAME) \
                --target=$(REAL_GNU_TARGET_NAME) \
                --enable-languages=c \
-               --disable-shared \
                --with-sysroot=$(TOOL_BUILD_DIR)/uClibc_dev/ \
                --disable-__cxa_atexit \
                --enable-target-optspace \
                --with-gnu-ld \
+               --disable-shared \
                $(DISABLE_NLS) \
                $(THREADS) \
                $(MULTILIB) \
@@ -175,10 +181,10 @@ $(GCC_BUILD_DIR2)/.configured: $(GCC_DIR)/.patched $(STAGING_DIR)/lib/libc.a
                --host=$(GNU_HOST_NAME) \
                --target=$(REAL_GNU_TARGET_NAME) \
                --enable-languages=$(TARGET_LANGUAGES) \
-               --enable-shared \
                --disable-__cxa_atexit \
                --enable-target-optspace \
                --with-gnu-ld \
+               $(GCC_SHARED_LIBGCC) \
                $(DISABLE_NLS) \
                $(THREADS) \
                $(MULTILIB) \
@@ -264,7 +270,7 @@ endif
        touch -c $(TARGET_DIR)/lib/libgcc_s.so.1
 
 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)
 
@@ -294,11 +300,11 @@ $(GCC_BUILD_DIR3)/.configured: $(GCC_BUILD_DIR2)/.installed
                --host=$(REAL_GNU_TARGET_NAME) \
                --target=$(REAL_GNU_TARGET_NAME) \
                --enable-languages=$(TARGET_LANGUAGES) \
-               --enable-shared \
                --with-gxx-include-dir=/usr/include/c++ \
                --disable-__cxa_atexit \
                --enable-target-optspace \
                --with-gnu-ld \
+               $(GCC_SHARED_LIBGCC) \
                $(DISABLE_NLS) \
                $(THREADS) \
                $(MULTILIB) \