diff options
author | Eric Andersen <andersen@codepoet.org> | 2006-10-02 19:40:44 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2006-10-02 19:40:44 +0000 |
commit | 6b48b48034501e5737ebe3bb2b1c980ed3b882e6 (patch) | |
tree | c2041e8d0bcc1144e0e51c536f5469ff88303d17 /toolchain | |
parent | ea85352bfb643e55b26a588f07f5920467d3c118 (diff) |
add a know to enable/disable building a shared libgcc
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/gcc/Config.in | 6 | ||||
-rw-r--r-- | toolchain/gcc/gcc-uclibc-3.x.mk | 14 |
2 files changed, 16 insertions, 4 deletions
diff --git a/toolchain/gcc/Config.in b/toolchain/gcc/Config.in index b3df3753c..d60c85c72 100644 --- a/toolchain/gcc/Config.in +++ b/toolchain/gcc/Config.in @@ -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 diff --git a/toolchain/gcc/gcc-uclibc-3.x.mk b/toolchain/gcc/gcc-uclibc-3.x.mk index 55cb295a4..1522ce592 100644 --- a/toolchain/gcc/gcc-uclibc-3.x.mk +++ b/toolchain/gcc/gcc-uclibc-3.x.mk @@ -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) \ |