summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-09-11 10:40:12 +0000
committerEric Andersen <andersen@codepoet.org>2003-09-11 10:40:12 +0000
commitafcbe6fc3dceb9103c228c30a0ca7b954e599874 (patch)
tree2401b408eec95cec59d5b599e52f135a30b633d6 /make
parent4b97e3fdb101df5910b827a827888449b000f24d (diff)
Make installing libstdc++ optional
Diffstat (limited to 'make')
-rw-r--r--make/uclibc_toolchain.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/make/uclibc_toolchain.mk b/make/uclibc_toolchain.mk
index e55742a6d..d7280c884 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 \