2012-03-27 23:13:14 +00:00
|
|
|
|
|
|
|
## This is used in all Makefile.am's. Set defaults here.
|
|
|
|
|
|
|
|
# May be used by various substitution variables.
|
2017-10-07 00:16:47 +00:00
|
|
|
gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER)
|
2012-03-27 23:13:14 +00:00
|
|
|
|
|
|
|
MAINT_CHARSET = latin1
|
|
|
|
|
|
|
|
mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
|
|
|
|
PWD_COMMAND = $${PWDCMD-pwd}
|
|
|
|
STAMP = echo timestamp >
|
|
|
|
|
|
|
|
toolexecdir = $(glibcxx_toolexecdir)
|
|
|
|
toolexeclibdir = $(glibcxx_toolexeclibdir)
|
|
|
|
|
|
|
|
if ENABLE_WERROR
|
2019-06-02 15:48:37 +00:00
|
|
|
WERROR_FLAG = -Werror
|
2012-03-27 23:13:14 +00:00
|
|
|
else
|
2019-06-02 15:48:37 +00:00
|
|
|
WERROR_FLAG =
|
2012-03-27 23:13:14 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-21 17:33:12 +00:00
|
|
|
if ENABLE_EXTERN_TEMPLATE
|
|
|
|
XTEMPLATE_FLAGS = -fno-implicit-templates
|
|
|
|
else
|
|
|
|
XTEMPLATE_FLAGS =
|
|
|
|
endif
|
|
|
|
|
2012-03-27 23:13:14 +00:00
|
|
|
# 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 = \
|
2017-10-07 00:16:47 +00:00
|
|
|
$(SECTION_FLAGS) $(HWCAP_CFLAGS) -frandom-seed=$@
|
2014-09-21 17:33:12 +00:00
|
|
|
|
2012-03-27 23:13:14 +00:00
|
|
|
WARN_CXXFLAGS = \
|
|
|
|
$(WARN_FLAGS) $(WERROR_FLAG) -fdiagnostics-show-location=once
|
|
|
|
|
|
|
|
# -I/-D flags to pass when compiling.
|
2017-04-10 11:32:00 +00:00
|
|
|
AM_CPPFLAGS = $(GLIBCXX_INCLUDES) $(CPPFLAGS)
|
2012-03-27 23:13:14 +00:00
|
|
|
|