Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 36594
Note that this will make the system libraries incompatible with most of the packages
that are not selected during the build process
Note that this will make the system libraries incompatible with most of the packages
that are not selected during the build process
- if INSTALL_LIBSTDCPP
- choice
- prompt "Preferred standard C++ library"
- default USE_LIBSTDCXX if USE_EGLIBC
- default USE_UCLIBCXX
- help
- Select the preferred standard C++ library for all packages that support this.
+ choice
+ prompt "Preferred standard C++ library"
+ default USE_LIBSTDCXX if USE_EGLIBC
+ default USE_UCLIBCXX
+ help
+ Select the preferred standard C++ library for all packages that support this.
- config USE_UCLIBCXX
- bool "uClibc++"
+ config USE_UCLIBCXX
+ bool "uClibc++"
- config USE_LIBSTDCXX
- bool "libstdc++"
- endchoice
- endif
+ config USE_LIBSTDCXX
+ bool "libstdc++"
+ endchoice
endif
PKG_PREPARED_DEPENDS += CONFIG_USE_UCLIBCXX
endif
PKG_PREPARED_DEPENDS += CONFIG_USE_UCLIBCXX
-CXX_DEPENDS = @INSTALL_LIBSTDCPP +USE_UCLIBCXX:uclibcxx +USE_LIBSTDCXX:libstdcpp
+CXX_DEPENDS = +USE_UCLIBCXX:uclibcxx +USE_LIBSTDCXX:libstdcpp
ifneq ($(CONFIG_USE_UCLIBCXX),)
ifneq ($(CONFIG_CCACHE),)
ifneq ($(CONFIG_USE_UCLIBCXX),)
ifneq ($(CONFIG_CCACHE),)
--with-terminfo-dirs=/usr/share/terminfo \
--with-default-terminfo-dir=/usr/share/terminfo
--with-terminfo-dirs=/usr/share/terminfo \
--with-default-terminfo-dir=/usr/share/terminfo
-ifneq ($(CONFIG_INSTALL_LIBSTDCPP),y)
-CONFIGURE_ARGS += \
- --without-cxx-binding
-endif
-
ifeq ($(HOST_OS),FreeBSD)
CONFIGURE_ARGS +=
--with-terminfo=/usr/share/terminfo.db
ifeq ($(HOST_OS),FreeBSD)
CONFIGURE_ARGS +=
--with-terminfo=/usr/share/terminfo.db
NAME:=uclibc++
SECTION:=libs
CATEGORY:=Libraries
NAME:=uclibc++
SECTION:=libs
CATEGORY:=Libraries
- DEPENDS:=@INSTALL_LIBSTDCPP
TITLE:=C++ library for embedded systems
URL:=http://cxx.uclibc.org/src/
endef
TITLE:=C++ library for embedded systems
URL:=http://cxx.uclibc.org/src/
endef
$(call Package/gcc/Default)
NAME:=libstdc++
TITLE:=GNU Standard C++ Library v3
$(call Package/gcc/Default)
NAME:=libstdc++
TITLE:=GNU Standard C++ Library v3
- DEPENDS+=@INSTALL_LIBSTDCPP
endef
define Package/libstdcpp/config
endef
define Package/libstdcpp/config
TARGET_CC:=$(TARGET_CROSS)gcc
TARGET_AR:=$(TARGET_CROSS)ar
TARGET_RANLIB:=$(TARGET_CROSS)ranlib
TARGET_CC:=$(TARGET_CROSS)gcc
TARGET_AR:=$(TARGET_CROSS)ar
TARGET_RANLIB:=$(TARGET_CROSS)ranlib
-TARGET_CXX:=$(if $(CONFIG_INSTALL_LIBSTDCPP),$(TARGET_CROSS)g++,no)
+TARGET_CXX:=$(TARGET_CROSS)g++
KPATCH:=$(SCRIPT_DIR)/patch-kernel.sh
SED:=$(STAGING_DIR_HOST)/bin/sed -i -e
CP:=cp -fpR
KPATCH:=$(SCRIPT_DIR)/patch-kernel.sh
SED:=$(STAGING_DIR_HOST)/bin/sed -i -e
CP:=cp -fpR
frame unwinding exceptions handling routines. Warning: increases
code size and runtime memory usage.
frame unwinding exceptions handling routines. Warning: increases
code size and runtime memory usage.
-config INSTALL_LIBSTDCPP
- bool
- prompt "Build/install c++ compiler and libstdc++?" if TOOLCHAINOPTS
- default y if !USE_MUSL
- help
- Build/install c++ compiler and libstdc++?
-
config INSTALL_LIBGCJ
bool
prompt "Build/install java compiler and GNU classpath ?" if TOOLCHAINOPTS
config INSTALL_LIBGCJ
bool
prompt "Build/install java compiler and GNU classpath ?" if TOOLCHAINOPTS
HOST_STAMP_INSTALLED:=$(STAGING_DIR_HOST)/stamp/.gcc_$(GCC_VARIANT)_installed
SEP:=,
HOST_STAMP_INSTALLED:=$(STAGING_DIR_HOST)/stamp/.gcc_$(GCC_VARIANT)_installed
SEP:=,
-TARGET_LANGUAGES:="c$(if $(CONFIG_INSTALL_LIBSTDCPP),$(SEP)c++)$(if $(CONFIG_INSTALL_LIBGCJ),$(SEP)java)$(if $(CONFIG_INSTALL_GFORTRAN),$(SEP)fortran)"
+TARGET_LANGUAGES:="c,c++$(if $(CONFIG_INSTALL_LIBGCJ),$(SEP)java)$(if $(CONFIG_INSTALL_GFORTRAN),$(SEP)fortran)"
export libgcc_cv_fixed_point=no
ifdef CONFIG_USE_UCLIBC
export libgcc_cv_fixed_point=no
ifdef CONFIG_USE_UCLIBC