From afcbe6fc3dceb9103c228c30a0ca7b954e599874 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 11 Sep 2003 10:40:12 +0000 Subject: [PATCH] Make installing libstdc++ optional --- make/uclibc_toolchain.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/make/uclibc_toolchain.mk b/make/uclibc_toolchain.mk index e55742a6dd..d7280c8842 100644 --- a/make/uclibc_toolchain.mk +++ b/make/uclibc_toolchain.mk @@ -28,6 +28,9 @@ ifneq ($(GCC_2_95_TOOLCHAIN),true) #Directory in which to build the toolchain TOOL_BUILD_DIR=$(BASE_DIR)/toolchain_build_$(ARCH) +#Install libstdc++? +INSTALL_LIBSTDCPP=true + TARGET_LANGUAGES:=c,c++ # If you want multilib enabled, enable this... @@ -476,7 +479,11 @@ $(TARGET_DIR)/lib/libstdc++.so.5.0.5: $(STAGING_DIR)/lib/libstdc++.so.5.0.5 $(TARGET_DIR)/lib/libgcc_s.so.0.9.9: $(STAGING_DIR)/lib/libgcc_s.so.0.9.9 cp -a $(STAGING_DIR)/lib/libgcc_s.so* $(TARGET_DIR)/lib/ -GCC_TARGETS=$(TARGET_DIR)/lib/libstdc++.so.5.0.5 $(TARGET_DIR)/lib/libgcc_s.so.0.9.9 +ifeq ($(INSTALL_LIBSTDCPP),true) +GCC_TARGETS= $(TARGET_DIR)/lib/libgcc_s.so.0.9.9 $(TARGET_DIR)/lib/libstdc++.so.5.0.5 +else +GCC_TARGETS= $(TARGET_DIR)/lib/libgcc_s.so.0.9.9 +endif endif gcc_final: $(STAGING_DIR)/.setup binutils gcc_initial uclibc \ -- 2.30.2