-# Compile flags that should be constant throughout the build, both for
-# SUBDIRS and for libstdc++-v3 in general.
-OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
-
-# These bits are all figured out from configure. Look in acinclude.m4
-# or configure.in to see how they are set. See GLIBCPP_EXPORT_FLAGS
-# NB: DEBUGFLAGS have to be at the end so that -O2 can be overridden.
-CONFIG_CXXFLAGS = \
- @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@ @CSHADOW_FLAGS@ @DEBUG_FLAGS@
-
-# Warning flags to use.
-WARN_CXXFLAGS = \
- @WARN_FLAGS@ $(WERROR) -fdiagnostics-show-location=once
-
-# Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
-GLIBCPP_INCLUDES = @GLIBCPP_INCLUDES@
-LIBMATH_INCLUDES = @LIBMATH_INCLUDES@
-LIBSUPCXX_INCLUDES = @LIBSUPCXX_INCLUDES@
-LIBIO_INCLUDES = @LIBIO_INCLUDES@
-TOPLEVEL_INCLUDES = @TOPLEVEL_INCLUDES@
-
-INCLUDES = \
- -nostdinc++ \
- $(GLIBCPP_INCLUDES) \
- $(LIBSUPCXX_INCLUDES) $(LIBIO_INCLUDES) $(LIBMATH_INCLUDES) \
- $(TOPLEVEL_INCLUDES)
-
+# Symbol versioning for shared libraries.
+if GLIBCXX_BUILD_VERSIONED_SHLIB
+version_arg = -Wl,--version-script=libstdc++-symbol.ver
+libstdc++-symbol.ver: ${glibcxx_srcdir}/$(SYMVER_MAP)
+ cp ${glibcxx_srcdir}/$(SYMVER_MAP) ./libstdc++-symbol.ver
+ if test "x$(port_specific_symbol_files)" != x; then \
+ sed -n '1,/DO NOT DELETE/p' $@ > tmp.top; \
+ sed -n '/DO NOT DELETE/,$$p' $@ > tmp.bottom; \
+ cat tmp.top $(port_specific_symbol_files) tmp.bottom > $@; \
+ rm tmp.top tmp.bottom; \
+ fi
+else
+version_arg =
+libstdc++-symbol.ver:
+endif
+
+
+# Source files linked in via configuration/make substitution for a
+# particular host.
+host_sources = \
+ codecvt_members.cc \
+ collate_members.cc \
+ ctype_members.cc \
+ messages_members.cc \
+ monetary_members.cc \
+ numeric_members.cc \
+ time_members.cc
+
+codecvt_members.cc: ${glibcxx_srcdir}/@CCODECVT_CC@
+ @LN_S@ ${glibcxx_srcdir}/@CCODECVT_CC@ . || true
+
+collate_members.cc: ${glibcxx_srcdir}/@CCOLLATE_CC@
+ @LN_S@ ${glibcxx_srcdir}/@CCOLLATE_CC@ . || true
+
+ctype_members.cc: ${glibcxx_srcdir}/@CCTYPE_CC@
+ @LN_S@ ${glibcxx_srcdir}/@CCTYPE_CC@ . || true
+
+messages_members.cc: ${glibcxx_srcdir}/@CMESSAGES_CC@
+ @LN_S@ ${glibcxx_srcdir}/@CMESSAGES_CC@ . || true
+
+monetary_members.cc: ${glibcxx_srcdir}/@CMONEY_CC@
+ @LN_S@ ${glibcxx_srcdir}/@CMONEY_CC@ . || true
+
+numeric_members.cc: ${glibcxx_srcdir}/@CNUMERIC_CC@
+ @LN_S@ ${glibcxx_srcdir}/@CNUMERIC_CC@ . || true
+
+time_members.cc: ${glibcxx_srcdir}/@CTIME_CC@
+ @LN_S@ ${glibcxx_srcdir}/@CTIME_CC@ . || true
+
+# Source files linked in via configuration/make substitution for a
+# particular host, but with ad hoc naming rules.
+host_sources_extra = \
+ basic_file.cc \
+ c++locale.cc
+
+c++locale.cc: ${glibcxx_srcdir}/@CLOCALE_CC@
+ @LN_S@ ${glibcxx_srcdir}/@CLOCALE_CC@ ./$@ || true
+
+basic_file.cc: ${glibcxx_srcdir}/@BASIC_FILE_CC@
+ @LN_S@ ${glibcxx_srcdir}/@BASIC_FILE_CC@ ./$@ || true
+
+# Sources present in the src directory.