xtensa: libgcc: fix PR target/95571
[gcc.git] / libstdc++-v3 / fragment.am
index 03eb753536dfcf007a3635d0e6df5ff19bb78643..216c572fc60e43e35859f47c48e742e0c7729bfc 100644 (file)
@@ -2,7 +2,7 @@
 ## This is used in all Makefile.am's.  Set defaults here.
 
 # May be used by various substitution variables.
-gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
+gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER)
 
 MAINT_CHARSET = latin1
 
@@ -14,9 +14,9 @@ toolexecdir = $(glibcxx_toolexecdir)
 toolexeclibdir = $(glibcxx_toolexeclibdir)
 
 if ENABLE_WERROR
-WERROR_FLAG=$(WERROR)
+WERROR_FLAG = -Werror
 else
-WERROR_FLAG=
+WERROR_FLAG =
 endif
 
 if ENABLE_EXTERN_TEMPLATE
@@ -28,7 +28,7 @@ endif
 # These bits are all figured out from configure.  Look in acinclude.m4
 # or configure.ac to see how they are set.  See GLIBCXX_EXPORT_FLAGS.
 CONFIG_CXXFLAGS = \
-       $(SECTION_FLAGS) $(HWCAP_FLAGS) -frandom-seed=$@
+       $(SECTION_FLAGS) $(HWCAP_CFLAGS) -frandom-seed=$@
 
 WARN_CXXFLAGS = \
        $(WARN_FLAGS) $(WERROR_FLAG) -fdiagnostics-show-location=once