Makefile.am: Add rules.
2002-06-20 Benjamin Kosnik <bkoz@redhat.com> * include/Makefile.am: Add rules. * include/Makefile.in: Regenerate. * acinclude.m4: Define GLIBCPP_C_HEADERS_COMPATIBILITY. * aclocal.m4: Regenerate. * configure: Regenerate. * configure.target (c_model, c_compatibility): Add. * libsupc++/Makefile.am (c_sources): New. (libsupc___la_SOURCES): Add c_sources. (LTCOMPILE): Remove INCLUDES. (GCC_INCLUDES): New. (C_COMPILE): New, like COMPILE but without INCLUDES. (cxa_demangle.o): Use C_COMPILE. (dyn-string.o): Use C_COMPILE. * include/c/std_cstdarg.h: Define __need___va_list. * include/c/std_cstddef.h: Define need_size_t, need_ptrdiff_t, need_NULL, need_offsetof. From-SVN: r54849
This commit is contained in:
parent
0ed4a39059
commit
e01c9849c9
19 changed files with 1426 additions and 1296 deletions
|
@ -1,3 +1,25 @@
|
||||||
|
2002-06-20 Benjamin Kosnik <bkoz@redhat.com>
|
||||||
|
|
||||||
|
* include/Makefile.am: Add rules.
|
||||||
|
* include/Makefile.in: Regenerate.
|
||||||
|
|
||||||
|
* acinclude.m4: Define GLIBCPP_C_HEADERS_COMPATIBILITY.
|
||||||
|
* aclocal.m4: Regenerate.
|
||||||
|
* configure: Regenerate.
|
||||||
|
* configure.target (c_model, c_compatibility): Add.
|
||||||
|
|
||||||
|
* libsupc++/Makefile.am (c_sources): New.
|
||||||
|
(libsupc___la_SOURCES): Add c_sources.
|
||||||
|
(LTCOMPILE): Remove INCLUDES.
|
||||||
|
(GCC_INCLUDES): New.
|
||||||
|
(C_COMPILE): New, like COMPILE but without INCLUDES.
|
||||||
|
(cxa_demangle.o): Use C_COMPILE.
|
||||||
|
(dyn-string.o): Use C_COMPILE.
|
||||||
|
|
||||||
|
* include/c/std_cstdarg.h: Define __need___va_list.
|
||||||
|
* include/c/std_cstddef.h: Define need_size_t, need_ptrdiff_t,
|
||||||
|
need_NULL, need_offsetof.
|
||||||
|
|
||||||
2002-06-19 Steve Ellcey <sje@cup.hp.com>
|
2002-06-19 Steve Ellcey <sje@cup.hp.com>
|
||||||
|
|
||||||
* configure.in (HAVE_FINITE*, HAVE_ISINF*, HAVE_ISNAN*): Remove
|
* configure.in (HAVE_FINITE*, HAVE_ISINF*, HAVE_ISNAN*): Remove
|
||||||
|
|
|
@ -75,7 +75,6 @@ CLOCALE_H = @CLOCALE_H@
|
||||||
CMESSAGES_H = @CMESSAGES_H@
|
CMESSAGES_H = @CMESSAGES_H@
|
||||||
CPP = @CPP@
|
CPP = @CPP@
|
||||||
CPU_LIMITS_INC_SRCDIR = @CPU_LIMITS_INC_SRCDIR@
|
CPU_LIMITS_INC_SRCDIR = @CPU_LIMITS_INC_SRCDIR@
|
||||||
CSHADOW_FLAGS = @CSHADOW_FLAGS@
|
|
||||||
CSTDIO_H = @CSTDIO_H@
|
CSTDIO_H = @CSTDIO_H@
|
||||||
CXX = @CXX@
|
CXX = @CXX@
|
||||||
CXXCPP = @CXXCPP@
|
CXXCPP = @CXXCPP@
|
||||||
|
|
|
@ -1691,23 +1691,20 @@ changequote([, ])
|
||||||
dnl Option parsed, now set things appropriately
|
dnl Option parsed, now set things appropriately
|
||||||
case "$enable_cheaders" in
|
case "$enable_cheaders" in
|
||||||
c_shadow)
|
c_shadow)
|
||||||
CSHADOW_FLAGS="-fno-builtin"
|
|
||||||
C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
|
C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
|
||||||
;;
|
;;
|
||||||
c_std)
|
c_std)
|
||||||
CSHADOW_FLAGS=""
|
|
||||||
C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
|
C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
|
||||||
;;
|
;;
|
||||||
c)
|
c)
|
||||||
CSHADOW_FLAGS=""
|
|
||||||
C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
|
C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AC_SUBST(CSHADOW_FLAGS)
|
|
||||||
AC_SUBST(C_INCLUDE_DIR)
|
AC_SUBST(C_INCLUDE_DIR)
|
||||||
AM_CONDITIONAL(GLIBCPP_C_HEADERS_C, test "$enable_cheaders" = c)
|
AM_CONDITIONAL(GLIBCPP_C_HEADERS_C, test "$enable_cheaders" = c)
|
||||||
AM_CONDITIONAL(GLIBCPP_C_HEADERS_C_STD, test "$enable_cheaders" = c_std)
|
AM_CONDITIONAL(GLIBCPP_C_HEADERS_C_STD, test "$enable_cheaders" = c_std)
|
||||||
|
AM_CONDITIONAL(GLIBCPP_C_HEADERS_COMPATIBILITY, test "$c_compatibility" = yes)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
5
libstdc++-v3/aclocal.m4
vendored
5
libstdc++-v3/aclocal.m4
vendored
|
@ -1703,23 +1703,20 @@ changequote([, ])
|
||||||
dnl Option parsed, now set things appropriately
|
dnl Option parsed, now set things appropriately
|
||||||
case "$enable_cheaders" in
|
case "$enable_cheaders" in
|
||||||
c_shadow)
|
c_shadow)
|
||||||
CSHADOW_FLAGS="-fno-builtin"
|
|
||||||
C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
|
C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
|
||||||
;;
|
;;
|
||||||
c_std)
|
c_std)
|
||||||
CSHADOW_FLAGS=""
|
|
||||||
C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
|
C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
|
||||||
;;
|
;;
|
||||||
c)
|
c)
|
||||||
CSHADOW_FLAGS=""
|
|
||||||
C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
|
C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AC_SUBST(CSHADOW_FLAGS)
|
|
||||||
AC_SUBST(C_INCLUDE_DIR)
|
AC_SUBST(C_INCLUDE_DIR)
|
||||||
AM_CONDITIONAL(GLIBCPP_C_HEADERS_C, test "$enable_cheaders" = c)
|
AM_CONDITIONAL(GLIBCPP_C_HEADERS_C, test "$enable_cheaders" = c)
|
||||||
AM_CONDITIONAL(GLIBCPP_C_HEADERS_C_STD, test "$enable_cheaders" = c_std)
|
AM_CONDITIONAL(GLIBCPP_C_HEADERS_C_STD, test "$enable_cheaders" = c_std)
|
||||||
|
AM_CONDITIONAL(GLIBCPP_C_HEADERS_COMPATIBILITY, test "$c_compatibility" = yes)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
2434
libstdc++-v3/configure
vendored
2434
libstdc++-v3/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -61,7 +61,7 @@ GLIBCPP_ENABLE_CLOCALE
|
||||||
GLIBCPP_ENABLE_C_MBCHAR([yes])
|
GLIBCPP_ENABLE_C_MBCHAR([yes])
|
||||||
GLIBCPP_ENABLE_C99([yes])
|
GLIBCPP_ENABLE_C99([yes])
|
||||||
GLIBCPP_ENABLE_LONG_LONG([yes])
|
GLIBCPP_ENABLE_LONG_LONG([yes])
|
||||||
GLIBCPP_ENABLE_CHEADERS([c_std])
|
GLIBCPP_ENABLE_CHEADERS([$c_model])
|
||||||
GLIBCPP_ENABLE_THREADS
|
GLIBCPP_ENABLE_THREADS
|
||||||
GLIBCPP_ENABLE_CXX_FLAGS([none])
|
GLIBCPP_ENABLE_CXX_FLAGS([none])
|
||||||
GLIBCPP_ENABLE_SJLJ_EXCEPTIONS
|
GLIBCPP_ENABLE_SJLJ_EXCEPTIONS
|
||||||
|
|
|
@ -26,6 +26,10 @@
|
||||||
#
|
#
|
||||||
# os_include_dir OS-specific directory, defaults to os/generic.
|
# os_include_dir OS-specific directory, defaults to os/generic.
|
||||||
#
|
#
|
||||||
|
# c_model the model to use for "C" headers, defaults to c_std.
|
||||||
|
#
|
||||||
|
# c_compatibility if "C" compatibility headers are necessary,
|
||||||
|
# defaults to no.
|
||||||
#
|
#
|
||||||
# It possibly modifies the following variables:
|
# It possibly modifies the following variables:
|
||||||
#
|
#
|
||||||
|
@ -40,6 +44,7 @@
|
||||||
# *_include_dir variables.
|
# *_include_dir variables.
|
||||||
|
|
||||||
|
|
||||||
|
# DEFAULTS
|
||||||
# Try to guess a default cpu_include_dir based on the name of the CPU. We
|
# Try to guess a default cpu_include_dir based on the name of the CPU. We
|
||||||
# cannot do this for os_include_dir; there are too many portable operating
|
# cannot do this for os_include_dir; there are too many portable operating
|
||||||
# systems out there. :-)
|
# systems out there. :-)
|
||||||
|
@ -49,10 +54,14 @@ else
|
||||||
cpu_include_dir="cpu/generic"
|
cpu_include_dir="cpu/generic"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
c_model=c_std
|
||||||
|
c_compatibility=no
|
||||||
|
|
||||||
|
|
||||||
|
# TARGET-SPECIFIC OVERRIDES
|
||||||
|
# Set any CPU-dependent bits.
|
||||||
# Here we override defaults and catch more general cases due to naming
|
# Here we override defaults and catch more general cases due to naming
|
||||||
# conventions (e.g., chip_name* to catch all variants). Also set any
|
# conventions (e.g., chip_name* to catch all variants).
|
||||||
# CPU-dependent compiler flags.
|
|
||||||
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
||||||
case "${target_cpu}" in
|
case "${target_cpu}" in
|
||||||
alpha*)
|
alpha*)
|
||||||
|
@ -113,9 +122,11 @@ fi
|
||||||
unset _cpu_incdir_fullpath
|
unset _cpu_incdir_fullpath
|
||||||
|
|
||||||
|
|
||||||
# Set the os_include_dir. If atomic ops and/or numeric limits are OS-specific
|
# Set any OS-dependent bits.
|
||||||
# rather than CPU-specifc, set those here too. Also set any OS-dependent
|
# Set the os_include_dir.
|
||||||
# compiler flags.
|
# Set c_model, c_compatibility here.
|
||||||
|
# If atomic ops and/or numeric limits are OS-specific rather than
|
||||||
|
# CPU-specifc, set those here too.
|
||||||
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
||||||
case "${target_os}" in
|
case "${target_os}" in
|
||||||
aix4.[3456789]* | aix[56789]*)
|
aix4.[3456789]* | aix[56789]*)
|
||||||
|
@ -177,6 +188,7 @@ case "${target_os}" in
|
||||||
;;
|
;;
|
||||||
qnx6.[12]*)
|
qnx6.[12]*)
|
||||||
os_include_dir="os/qnx/qnx6.1"
|
os_include_dir="os/qnx/qnx6.1"
|
||||||
|
c_model=c
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
os_include_dir="os/generic"
|
os_include_dir="os/generic"
|
||||||
|
@ -184,7 +196,7 @@ case "${target_os}" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
# Set any flags dependent on the full target triplet.
|
# Set any OS-dependent and CPU-dependent bits.
|
||||||
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
||||||
case "${target}" in
|
case "${target}" in
|
||||||
alpha*-*-*osf5*)
|
alpha*-*-*osf5*)
|
||||||
|
|
|
@ -204,15 +204,45 @@ c_base_headers_rename = \
|
||||||
cwchar \
|
cwchar \
|
||||||
cwctype
|
cwctype
|
||||||
|
|
||||||
|
# "C" compatibility headers.
|
||||||
|
c_compatibility_srcdir = ${glibcpp_srcdir}/include/c_compatibility
|
||||||
|
c_compatibility_builddir = .
|
||||||
|
c_compatibility_headers = \
|
||||||
|
${c_compatibility_srcdir}/assert.h \
|
||||||
|
${c_compatibility_srcdir}/ctype.h \
|
||||||
|
${c_compatibility_srcdir}/errno.h \
|
||||||
|
${c_compatibility_srcdir}/float.h \
|
||||||
|
${c_compatibility_srcdir}/iso646.h \
|
||||||
|
${c_compatibility_srcdir}/limits.h \
|
||||||
|
${c_compatibility_srcdir}/locale.h \
|
||||||
|
${c_compatibility_srcdir}/math.h \
|
||||||
|
${c_compatibility_srcdir}/setjmp.h \
|
||||||
|
${c_compatibility_srcdir}/signal.h \
|
||||||
|
${c_compatibility_srcdir}/stdarg.h \
|
||||||
|
${c_compatibility_srcdir}/stddef.h \
|
||||||
|
${c_compatibility_srcdir}/stdio.h \
|
||||||
|
${c_compatibility_srcdir}/stdlib.h \
|
||||||
|
${c_compatibility_srcdir}/string.h \
|
||||||
|
${c_compatibility_srcdir}/time.h \
|
||||||
|
${c_compatibility_srcdir}/wchar.h \
|
||||||
|
${c_compatibility_srcdir}/wctype.h
|
||||||
|
|
||||||
# Some of the different "C" header models need extra files.
|
# Some of the different "C" header models need extra files.
|
||||||
|
# Some "C" header schemes require the "C" compatibility headers.
|
||||||
# For --enable-cheaders=c_std
|
# For --enable-cheaders=c_std
|
||||||
if GLIBCPP_C_HEADERS_C_STD
|
if GLIBCPP_C_HEADERS_C_STD
|
||||||
c_base_headers_extra = \
|
c_base_headers_extra = ${c_base_srcdir}/cmath.tcc
|
||||||
${c_base_srcdir}/cmath.tcc
|
|
||||||
else
|
else
|
||||||
c_base_headers_extra =
|
c_base_headers_extra =
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if GLIBCPP_C_HEADERS_COMPATIBILITY
|
||||||
|
c_compatibility_headers_extra = ${c_compatibility_headers}
|
||||||
|
else
|
||||||
|
c_compatibility_headers_extra =
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
std_srcdir = ${glibcpp_srcdir}/include/std
|
std_srcdir = ${glibcpp_srcdir}/include/std
|
||||||
std_builddir = .
|
std_builddir = .
|
||||||
std_headers = \
|
std_headers = \
|
||||||
|
@ -286,8 +316,8 @@ target_headers = \
|
||||||
${target_srcdir}/os_defines.h \
|
${target_srcdir}/os_defines.h \
|
||||||
${glibcpp_srcdir}/@ATOMICITY_INC_SRCDIR@/atomicity.h \
|
${glibcpp_srcdir}/@ATOMICITY_INC_SRCDIR@/atomicity.h \
|
||||||
${glibcpp_srcdir}/@CPU_LIMITS_INC_SRCDIR@/cpu_limits.h
|
${glibcpp_srcdir}/@CPU_LIMITS_INC_SRCDIR@/cpu_limits.h
|
||||||
# These extra_target_headers files are all built with ad hoc naming rules.
|
# These target_headers_extra files are all built with ad hoc naming rules.
|
||||||
extra_target_headers = \
|
target_headers_extra = \
|
||||||
${target_builddir}/basic_file.h \
|
${target_builddir}/basic_file.h \
|
||||||
${target_builddir}/c++config.h \
|
${target_builddir}/c++config.h \
|
||||||
${target_builddir}/c++io.h \
|
${target_builddir}/c++io.h \
|
||||||
|
@ -303,7 +333,9 @@ thread_target_headers = \
|
||||||
|
|
||||||
# List of all timestamp files. By keeping only one copy of this list, both
|
# List of all timestamp files. By keeping only one copy of this list, both
|
||||||
# CLEANFILES and all-local are kept up-to-date.
|
# CLEANFILES and all-local are kept up-to-date.
|
||||||
allstamps = stamp-std stamp-bits stamp-c_base stamp-backward stamp-ext \
|
allstamps = \
|
||||||
|
stamp-std stamp-bits stamp-c_base stamp-c_compatibility \
|
||||||
|
stamp-backward stamp-ext \
|
||||||
${target_builddir}/stamp-target
|
${target_builddir}/stamp-target
|
||||||
|
|
||||||
|
|
||||||
|
@ -342,6 +374,15 @@ stamp-c_base: ${c_base_headers} ${c_base_headers_extra}
|
||||||
fi ;\
|
fi ;\
|
||||||
echo `date` > stamp-c_base
|
echo `date` > stamp-c_base
|
||||||
|
|
||||||
|
stamp-c_compatibility: ${c_compatibility_headers_extra}
|
||||||
|
@if [ ! -d "${c_compatibility_builddir}" ]; then \
|
||||||
|
mkdir -p ${c_compatibility_builddir} ;\
|
||||||
|
fi ;\
|
||||||
|
if [ ! -z "${c_compatibility_headers_extra}" ]; then \
|
||||||
|
(cd ${c_compatibility_builddir} && @LN_S@ $? . || true) ;\
|
||||||
|
fi ;\
|
||||||
|
echo `date` > stamp-c_compatibility
|
||||||
|
|
||||||
stamp-backward: ${backward_headers}
|
stamp-backward: ${backward_headers}
|
||||||
@if [ ! -d "${backward_builddir}" ]; then \
|
@if [ ! -d "${backward_builddir}" ]; then \
|
||||||
mkdir -p ${backward_builddir} ;\
|
mkdir -p ${backward_builddir} ;\
|
||||||
|
@ -423,7 +464,7 @@ ${target_builddir}/gthr-default.h: ${toplevel_srcdir}/gcc/${glibcpp_thread_h} \
|
||||||
# components. Yes, with minor differences, this is sheer duplication
|
# components. Yes, with minor differences, this is sheer duplication
|
||||||
# of the staging rules above using $(INSTALL_DATA) instead of LN_S and
|
# of the staging rules above using $(INSTALL_DATA) instead of LN_S and
|
||||||
# `$(mkinstalldirs)' instead of `mkdir -p'. In particular,
|
# `$(mkinstalldirs)' instead of `mkdir -p'. In particular,
|
||||||
# extra_target_headers are taken out of the build tree staging area;
|
# target_headers_extra are taken out of the build tree staging area;
|
||||||
# the rest are taken from the original source tree.
|
# the rest are taken from the original source tree.
|
||||||
gxx_include_dir = @gxx_include_dir@
|
gxx_include_dir = @gxx_include_dir@
|
||||||
install-data-local:
|
install-data-local:
|
||||||
|
@ -439,17 +480,18 @@ install-data-local:
|
||||||
$(INSTALL_DATA) $${file} ${gxx_include_dir}/${ext_builddir}; done
|
$(INSTALL_DATA) $${file} ${gxx_include_dir}/${ext_builddir}; done
|
||||||
$(mkinstalldirs) ${gxx_include_dir}/${c_base_builddir}
|
$(mkinstalldirs) ${gxx_include_dir}/${c_base_builddir}
|
||||||
for file in ${c_base_headers_rename}; do \
|
for file in ${c_base_headers_rename}; do \
|
||||||
$(INSTALL_DATA) ${c_base_builddir}/$${file} \
|
$(INSTALL_DATA) ${c_base_builddir}/$${file} ${gxx_include_dir}; done
|
||||||
${gxx_include_dir}/${c_base_builddir}; done
|
c_base_headers_extra_install='$(c_base_headers_extra)';\
|
||||||
c_base_headers_extra_install=${c_base_headers_extra};\
|
|
||||||
for file in $$c_base_headers_extra_install; do \
|
for file in $$c_base_headers_extra_install; do \
|
||||||
$(INSTALL_DATA) $$file ${gxx_include_dir}/${bits_builddir}; done
|
$(INSTALL_DATA) $$file ${gxx_include_dir}/${bits_builddir}; done
|
||||||
|
c_compatibility_headers_install='$(c_compatibility_headers_extra)';\
|
||||||
|
for file in $$c_compatibility_headers_install; do \
|
||||||
|
$(INSTALL_DATA) $$file ${gxx_include_dir}; done
|
||||||
$(mkinstalldirs) ${gxx_include_dir}/${std_builddir}
|
$(mkinstalldirs) ${gxx_include_dir}/${std_builddir}
|
||||||
for file in ${std_headers_rename}; do \
|
for file in ${std_headers_rename}; do \
|
||||||
$(INSTALL_DATA) ${std_builddir}/$${file} \
|
$(INSTALL_DATA) ${std_builddir}/$${file} ${gxx_include_dir}; done
|
||||||
${gxx_include_dir}/${std_builddir}; done
|
|
||||||
$(mkinstalldirs) ${gxx_include_dir}/${target_builddir}
|
$(mkinstalldirs) ${gxx_include_dir}/${target_builddir}
|
||||||
for file in ${target_headers} ${extra_target_headers} \
|
for file in ${target_headers} ${target_headers_extra} \
|
||||||
${thread_target_headers}; do \
|
${thread_target_headers}; do \
|
||||||
$(INSTALL_DATA) $${file} ${gxx_include_dir}/${target_builddir}; done
|
$(INSTALL_DATA) $${file} ${gxx_include_dir}/${target_builddir}; done
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,6 @@ CLOCALE_H = @CLOCALE_H@
|
||||||
CMESSAGES_H = @CMESSAGES_H@
|
CMESSAGES_H = @CMESSAGES_H@
|
||||||
CPP = @CPP@
|
CPP = @CPP@
|
||||||
CPU_LIMITS_INC_SRCDIR = @CPU_LIMITS_INC_SRCDIR@
|
CPU_LIMITS_INC_SRCDIR = @CPU_LIMITS_INC_SRCDIR@
|
||||||
CSHADOW_FLAGS = @CSHADOW_FLAGS@
|
|
||||||
CSTDIO_H = @CSTDIO_H@
|
CSTDIO_H = @CSTDIO_H@
|
||||||
CXXCPP = @CXXCPP@
|
CXXCPP = @CXXCPP@
|
||||||
C_INCLUDE_DIR = @C_INCLUDE_DIR@
|
C_INCLUDE_DIR = @C_INCLUDE_DIR@
|
||||||
|
@ -316,9 +315,34 @@ c_base_headers_rename = \
|
||||||
cwchar \
|
cwchar \
|
||||||
cwctype
|
cwctype
|
||||||
|
|
||||||
@GLIBCPP_C_HEADERS_C_STD_TRUE@c_base_headers_extra = @GLIBCPP_C_HEADERS_C_STD_TRUE@\
|
|
||||||
@GLIBCPP_C_HEADERS_C_STD_TRUE@ ${c_base_srcdir}/cmath.tcc
|
# "C" compatibility headers.
|
||||||
|
c_compatibility_srcdir = ${glibcpp_srcdir}/include/c_compatibility
|
||||||
|
c_compatibility_builddir = .
|
||||||
|
c_compatibility_headers = \
|
||||||
|
${c_compatibility_srcdir}/assert.h \
|
||||||
|
${c_compatibility_srcdir}/ctype.h \
|
||||||
|
${c_compatibility_srcdir}/errno.h \
|
||||||
|
${c_compatibility_srcdir}/float.h \
|
||||||
|
${c_compatibility_srcdir}/iso646.h \
|
||||||
|
${c_compatibility_srcdir}/limits.h \
|
||||||
|
${c_compatibility_srcdir}/locale.h \
|
||||||
|
${c_compatibility_srcdir}/math.h \
|
||||||
|
${c_compatibility_srcdir}/setjmp.h \
|
||||||
|
${c_compatibility_srcdir}/signal.h \
|
||||||
|
${c_compatibility_srcdir}/stdarg.h \
|
||||||
|
${c_compatibility_srcdir}/stddef.h \
|
||||||
|
${c_compatibility_srcdir}/stdio.h \
|
||||||
|
${c_compatibility_srcdir}/stdlib.h \
|
||||||
|
${c_compatibility_srcdir}/string.h \
|
||||||
|
${c_compatibility_srcdir}/time.h \
|
||||||
|
${c_compatibility_srcdir}/wchar.h \
|
||||||
|
${c_compatibility_srcdir}/wctype.h
|
||||||
|
|
||||||
|
@GLIBCPP_C_HEADERS_C_STD_TRUE@c_base_headers_extra = @GLIBCPP_C_HEADERS_C_STD_TRUE@${c_base_srcdir}/cmath.tcc
|
||||||
@GLIBCPP_C_HEADERS_C_STD_FALSE@c_base_headers_extra =
|
@GLIBCPP_C_HEADERS_C_STD_FALSE@c_base_headers_extra =
|
||||||
|
@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@c_compatibility_headers_extra = @GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@${c_compatibility_headers}
|
||||||
|
@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@c_compatibility_headers_extra =
|
||||||
|
|
||||||
std_srcdir = ${glibcpp_srcdir}/include/std
|
std_srcdir = ${glibcpp_srcdir}/include/std
|
||||||
std_builddir = .
|
std_builddir = .
|
||||||
|
@ -396,8 +420,8 @@ target_headers = \
|
||||||
${glibcpp_srcdir}/@ATOMICITY_INC_SRCDIR@/atomicity.h \
|
${glibcpp_srcdir}/@ATOMICITY_INC_SRCDIR@/atomicity.h \
|
||||||
${glibcpp_srcdir}/@CPU_LIMITS_INC_SRCDIR@/cpu_limits.h
|
${glibcpp_srcdir}/@CPU_LIMITS_INC_SRCDIR@/cpu_limits.h
|
||||||
|
|
||||||
# These extra_target_headers files are all built with ad hoc naming rules.
|
# These target_headers_extra files are all built with ad hoc naming rules.
|
||||||
extra_target_headers = \
|
target_headers_extra = \
|
||||||
${target_builddir}/basic_file.h \
|
${target_builddir}/basic_file.h \
|
||||||
${target_builddir}/c++config.h \
|
${target_builddir}/c++config.h \
|
||||||
${target_builddir}/c++io.h \
|
${target_builddir}/c++io.h \
|
||||||
|
@ -415,7 +439,9 @@ thread_target_headers = \
|
||||||
|
|
||||||
# List of all timestamp files. By keeping only one copy of this list, both
|
# List of all timestamp files. By keeping only one copy of this list, both
|
||||||
# CLEANFILES and all-local are kept up-to-date.
|
# CLEANFILES and all-local are kept up-to-date.
|
||||||
allstamps = stamp-std stamp-bits stamp-c_base stamp-backward stamp-ext \
|
allstamps = \
|
||||||
|
stamp-std stamp-bits stamp-c_base stamp-c_compatibility \
|
||||||
|
stamp-backward stamp-ext \
|
||||||
${target_builddir}/stamp-target
|
${target_builddir}/stamp-target
|
||||||
|
|
||||||
|
|
||||||
|
@ -429,7 +455,7 @@ uppercase = [ABCDEFGHIJKLMNOPQRSTUVWXYZ_]
|
||||||
# components. Yes, with minor differences, this is sheer duplication
|
# components. Yes, with minor differences, this is sheer duplication
|
||||||
# of the staging rules above using $(INSTALL_DATA) instead of LN_S and
|
# of the staging rules above using $(INSTALL_DATA) instead of LN_S and
|
||||||
# `$(mkinstalldirs)' instead of `mkdir -p'. In particular,
|
# `$(mkinstalldirs)' instead of `mkdir -p'. In particular,
|
||||||
# extra_target_headers are taken out of the build tree staging area;
|
# target_headers_extra are taken out of the build tree staging area;
|
||||||
# the rest are taken from the original source tree.
|
# the rest are taken from the original source tree.
|
||||||
gxx_include_dir = @gxx_include_dir@
|
gxx_include_dir = @gxx_include_dir@
|
||||||
CONFIG_HEADER = ../config.h
|
CONFIG_HEADER = ../config.h
|
||||||
|
@ -569,6 +595,15 @@ stamp-c_base: ${c_base_headers} ${c_base_headers_extra}
|
||||||
fi ;\
|
fi ;\
|
||||||
echo `date` > stamp-c_base
|
echo `date` > stamp-c_base
|
||||||
|
|
||||||
|
stamp-c_compatibility: ${c_compatibility_headers_extra}
|
||||||
|
@if [ ! -d "${c_compatibility_builddir}" ]; then \
|
||||||
|
mkdir -p ${c_compatibility_builddir} ;\
|
||||||
|
fi ;\
|
||||||
|
if [ ! -z "${c_compatibility_headers_extra}" ]; then \
|
||||||
|
(cd ${c_compatibility_builddir} && @LN_S@ $? . || true) ;\
|
||||||
|
fi ;\
|
||||||
|
echo `date` > stamp-c_compatibility
|
||||||
|
|
||||||
stamp-backward: ${backward_headers}
|
stamp-backward: ${backward_headers}
|
||||||
@if [ ! -d "${backward_builddir}" ]; then \
|
@if [ ! -d "${backward_builddir}" ]; then \
|
||||||
mkdir -p ${backward_builddir} ;\
|
mkdir -p ${backward_builddir} ;\
|
||||||
|
@ -652,17 +687,18 @@ install-data-local:
|
||||||
$(INSTALL_DATA) $${file} ${gxx_include_dir}/${ext_builddir}; done
|
$(INSTALL_DATA) $${file} ${gxx_include_dir}/${ext_builddir}; done
|
||||||
$(mkinstalldirs) ${gxx_include_dir}/${c_base_builddir}
|
$(mkinstalldirs) ${gxx_include_dir}/${c_base_builddir}
|
||||||
for file in ${c_base_headers_rename}; do \
|
for file in ${c_base_headers_rename}; do \
|
||||||
$(INSTALL_DATA) ${c_base_builddir}/$${file} \
|
$(INSTALL_DATA) ${c_base_builddir}/$${file} ${gxx_include_dir}; done
|
||||||
${gxx_include_dir}/${c_base_builddir}; done
|
c_base_headers_extra_install='$(c_base_headers_extra)';\
|
||||||
c_base_headers_extra_install=${c_base_headers_extra};\
|
|
||||||
for file in $$c_base_headers_extra_install; do \
|
for file in $$c_base_headers_extra_install; do \
|
||||||
$(INSTALL_DATA) $$file ${gxx_include_dir}/${bits_builddir}; done
|
$(INSTALL_DATA) $$file ${gxx_include_dir}/${bits_builddir}; done
|
||||||
|
c_compatibility_headers_install='$(c_compatibility_headers_extra)';\
|
||||||
|
for file in $$c_compatibility_headers_install; do \
|
||||||
|
$(INSTALL_DATA) $$file ${gxx_include_dir}; done
|
||||||
$(mkinstalldirs) ${gxx_include_dir}/${std_builddir}
|
$(mkinstalldirs) ${gxx_include_dir}/${std_builddir}
|
||||||
for file in ${std_headers_rename}; do \
|
for file in ${std_headers_rename}; do \
|
||||||
$(INSTALL_DATA) ${std_builddir}/$${file} \
|
$(INSTALL_DATA) ${std_builddir}/$${file} ${gxx_include_dir}; done
|
||||||
${gxx_include_dir}/${std_builddir}; done
|
|
||||||
$(mkinstalldirs) ${gxx_include_dir}/${target_builddir}
|
$(mkinstalldirs) ${gxx_include_dir}/${target_builddir}
|
||||||
for file in ${target_headers} ${extra_target_headers} \
|
for file in ${target_headers} ${target_headers_extra} \
|
||||||
${thread_target_headers}; do \
|
${thread_target_headers}; do \
|
||||||
$(INSTALL_DATA) $${file} ${gxx_include_dir}/${target_builddir}; done
|
$(INSTALL_DATA) $${file} ${gxx_include_dir}/${target_builddir}; done
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
|
|
||||||
#pragma GCC system_header
|
#pragma GCC system_header
|
||||||
|
|
||||||
|
#undef __need___va_list
|
||||||
#include_next <stdarg.h>
|
#include_next <stdarg.h>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -36,6 +36,10 @@
|
||||||
|
|
||||||
#pragma GCC system_header
|
#pragma GCC system_header
|
||||||
|
|
||||||
|
#define __need_size_t
|
||||||
|
#define __need_ptrdiff_t
|
||||||
|
#define __need_NULL
|
||||||
|
#define __need_offsetof
|
||||||
#include_next <stddef.h>
|
#include_next <stddef.h>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -75,7 +75,6 @@ CLOCALE_H = @CLOCALE_H@
|
||||||
CMESSAGES_H = @CMESSAGES_H@
|
CMESSAGES_H = @CMESSAGES_H@
|
||||||
CPP = @CPP@
|
CPP = @CPP@
|
||||||
CPU_LIMITS_INC_SRCDIR = @CPU_LIMITS_INC_SRCDIR@
|
CPU_LIMITS_INC_SRCDIR = @CPU_LIMITS_INC_SRCDIR@
|
||||||
CSHADOW_FLAGS = @CSHADOW_FLAGS@
|
|
||||||
CSTDIO_H = @CSTDIO_H@
|
CSTDIO_H = @CSTDIO_H@
|
||||||
CXX = @CXX@
|
CXX = @CXX@
|
||||||
CXXCPP = @CXXCPP@
|
CXXCPP = @CXXCPP@
|
||||||
|
|
|
@ -75,7 +75,6 @@ CLOCALE_H = @CLOCALE_H@
|
||||||
CMESSAGES_H = @CMESSAGES_H@
|
CMESSAGES_H = @CMESSAGES_H@
|
||||||
CPP = @CPP@
|
CPP = @CPP@
|
||||||
CPU_LIMITS_INC_SRCDIR = @CPU_LIMITS_INC_SRCDIR@
|
CPU_LIMITS_INC_SRCDIR = @CPU_LIMITS_INC_SRCDIR@
|
||||||
CSHADOW_FLAGS = @CSHADOW_FLAGS@
|
|
||||||
CSTDIO_H = @CSTDIO_H@
|
CSTDIO_H = @CSTDIO_H@
|
||||||
CXX = @CXX@
|
CXX = @CXX@
|
||||||
CXXCPP = @CXXCPP@
|
CXXCPP = @CXXCPP@
|
||||||
|
|
|
@ -49,7 +49,7 @@ OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
|
||||||
# or configure.in to see how they are set. See GLIBCPP_EXPORT_FLAGS
|
# 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.
|
# NB: DEBUGFLAGS have to be at the end so that -O2 can be overridden.
|
||||||
CONFIG_CXXFLAGS = \
|
CONFIG_CXXFLAGS = \
|
||||||
@EXTRA_CXX_FLAGS@ @SECTION_FLAGS@ @CSHADOW_FLAGS@ @DEBUG_FLAGS@
|
@EXTRA_CXX_FLAGS@ @SECTION_FLAGS@ @DEBUG_FLAGS@
|
||||||
|
|
||||||
# Warning flags to use.
|
# Warning flags to use.
|
||||||
WARN_CXXFLAGS = \
|
WARN_CXXFLAGS = \
|
||||||
|
@ -58,21 +58,23 @@ WARN_CXXFLAGS = \
|
||||||
# Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
|
# Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
|
||||||
GLIBCPP_INCLUDES = @GLIBCPP_INCLUDES@
|
GLIBCPP_INCLUDES = @GLIBCPP_INCLUDES@
|
||||||
LIBSUPCXX_INCLUDES = @LIBSUPCXX_INCLUDES@
|
LIBSUPCXX_INCLUDES = @LIBSUPCXX_INCLUDES@
|
||||||
|
GCC_INCLUDES = -I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include
|
||||||
|
|
||||||
INCLUDES = \
|
INCLUDES = \
|
||||||
-I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include \
|
$(GCC_INCLUDES) $(GLIBCPP_INCLUDES) $(LIBSUPCXX_INCLUDES)
|
||||||
$(GLIBCPP_INCLUDES) $(LIBSUPCXX_INCLUDES)
|
|
||||||
|
|
||||||
headers = \
|
headers = \
|
||||||
exception new typeinfo cxxabi.h exception_defines.h
|
exception new typeinfo cxxabi.h exception_defines.h
|
||||||
|
|
||||||
sources = \
|
c_sources = \
|
||||||
cxa_demangle.c \
|
cxa_demangle.c \
|
||||||
|
dyn-string.c
|
||||||
|
|
||||||
|
sources = \
|
||||||
del_op.cc \
|
del_op.cc \
|
||||||
del_opnt.cc \
|
del_opnt.cc \
|
||||||
del_opv.cc \
|
del_opv.cc \
|
||||||
del_opvnt.cc \
|
del_opvnt.cc \
|
||||||
dyn-string.c \
|
|
||||||
eh_alloc.cc \
|
eh_alloc.cc \
|
||||||
eh_aux_runtime.cc \
|
eh_aux_runtime.cc \
|
||||||
eh_catch.cc \
|
eh_catch.cc \
|
||||||
|
@ -92,7 +94,7 @@ sources = \
|
||||||
tinfo2.cc \
|
tinfo2.cc \
|
||||||
vec.cc
|
vec.cc
|
||||||
|
|
||||||
libsupc___la_SOURCES = $(sources)
|
libsupc___la_SOURCES = $(sources) $(c_sources)
|
||||||
libsupc__convenience_la_SOURCES = $(sources)
|
libsupc__convenience_la_SOURCES = $(sources)
|
||||||
|
|
||||||
glibcppinstalldir = @gxx_include_dir@
|
glibcppinstalldir = @gxx_include_dir@
|
||||||
|
@ -100,26 +102,32 @@ glibcppinstall_HEADERS = $(headers)
|
||||||
|
|
||||||
LIBSUPCXX_CXXFLAGS = $(LIBSUPCXX_PICFLAGS)
|
LIBSUPCXX_CXXFLAGS = $(LIBSUPCXX_PICFLAGS)
|
||||||
|
|
||||||
# Use special rules for pulling things out of libiberty.
|
# Use special rules for pulling things out of libiberty. These
|
||||||
|
# objects should be compiled with the "C" compiler, not the C++
|
||||||
|
# compiler, and also should not use the C++ includes.
|
||||||
|
C_COMPILE = \
|
||||||
|
$(CC) $(DEFS) $(GCC_INCLUDES) \
|
||||||
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||||
|
|
||||||
cxa_demangle.c:
|
cxa_demangle.c:
|
||||||
rm -f $@
|
rm -f $@
|
||||||
$(LN_S) $(toplevel_srcdir)/libiberty/cp-demangle.c $@
|
$(LN_S) $(toplevel_srcdir)/libiberty/cp-demangle.c $@
|
||||||
cxa_demangle.lo: cxa_demangle.c
|
cxa_demangle.lo: cxa_demangle.c
|
||||||
$(LTCOMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
$(LTCOMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
||||||
cxa_demangle.o: cxa_demangle.c
|
cxa_demangle.o: cxa_demangle.c
|
||||||
$(COMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
$(C_COMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
||||||
dyn-string.c:
|
dyn-string.c:
|
||||||
rm -f $@
|
rm -f $@
|
||||||
$(LN_S) $(toplevel_srcdir)/libiberty/dyn-string.c $@
|
$(LN_S) $(toplevel_srcdir)/libiberty/dyn-string.c $@
|
||||||
dyn-string.lo: dyn-string.c
|
dyn-string.lo: dyn-string.c
|
||||||
$(LTCOMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
$(LTCOMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
||||||
dyn-string.o: dyn-string.c
|
dyn-string.o: dyn-string.c
|
||||||
$(COMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
$(C_COMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
||||||
|
|
||||||
# LTCOMPILE is copied from LTCXXCOMPILE below.
|
# LTCOMPILE is copied from LTCXXCOMPILE below.
|
||||||
LTCOMPILE = $(LIBTOOL) --tag CC --tag disable-shared \
|
LTCOMPILE = $(LIBTOOL) --tag CC --tag disable-shared --mode=compile $(CC) \
|
||||||
--mode=compile $(CC) $(DEFS) $(INCLUDES) \
|
$(DEFS) $(GCC_INCLUDES) \
|
||||||
$(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(AM_CXXFLAGS)
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(AM_CXXFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# AM_CXXFLAGS needs to be in each subdirectory so that it can be
|
# AM_CXXFLAGS needs to be in each subdirectory so that it can be
|
||||||
|
|
|
@ -74,7 +74,6 @@ CLOCALE_H = @CLOCALE_H@
|
||||||
CMESSAGES_H = @CMESSAGES_H@
|
CMESSAGES_H = @CMESSAGES_H@
|
||||||
CPP = @CPP@
|
CPP = @CPP@
|
||||||
CPU_LIMITS_INC_SRCDIR = @CPU_LIMITS_INC_SRCDIR@
|
CPU_LIMITS_INC_SRCDIR = @CPU_LIMITS_INC_SRCDIR@
|
||||||
CSHADOW_FLAGS = @CSHADOW_FLAGS@
|
|
||||||
CSTDIO_H = @CSTDIO_H@
|
CSTDIO_H = @CSTDIO_H@
|
||||||
CXXCPP = @CXXCPP@
|
CXXCPP = @CXXCPP@
|
||||||
C_INCLUDE_DIR = @C_INCLUDE_DIR@
|
C_INCLUDE_DIR = @C_INCLUDE_DIR@
|
||||||
|
@ -155,7 +154,7 @@ OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
|
||||||
# or configure.in to see how they are set. See GLIBCPP_EXPORT_FLAGS
|
# 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.
|
# NB: DEBUGFLAGS have to be at the end so that -O2 can be overridden.
|
||||||
CONFIG_CXXFLAGS = \
|
CONFIG_CXXFLAGS = \
|
||||||
@EXTRA_CXX_FLAGS@ @SECTION_FLAGS@ @CSHADOW_FLAGS@ @DEBUG_FLAGS@
|
@EXTRA_CXX_FLAGS@ @SECTION_FLAGS@ @DEBUG_FLAGS@
|
||||||
|
|
||||||
|
|
||||||
# Warning flags to use.
|
# Warning flags to use.
|
||||||
|
@ -166,23 +165,26 @@ WARN_CXXFLAGS = \
|
||||||
# Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
|
# Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
|
||||||
GLIBCPP_INCLUDES = @GLIBCPP_INCLUDES@
|
GLIBCPP_INCLUDES = @GLIBCPP_INCLUDES@
|
||||||
LIBSUPCXX_INCLUDES = @LIBSUPCXX_INCLUDES@
|
LIBSUPCXX_INCLUDES = @LIBSUPCXX_INCLUDES@
|
||||||
|
GCC_INCLUDES = -I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include
|
||||||
|
|
||||||
INCLUDES = \
|
INCLUDES = \
|
||||||
-I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include \
|
$(GCC_INCLUDES) $(GLIBCPP_INCLUDES) $(LIBSUPCXX_INCLUDES)
|
||||||
$(GLIBCPP_INCLUDES) $(LIBSUPCXX_INCLUDES)
|
|
||||||
|
|
||||||
|
|
||||||
headers = \
|
headers = \
|
||||||
exception new typeinfo cxxabi.h exception_defines.h
|
exception new typeinfo cxxabi.h exception_defines.h
|
||||||
|
|
||||||
|
|
||||||
sources = \
|
c_sources = \
|
||||||
cxa_demangle.c \
|
cxa_demangle.c \
|
||||||
|
dyn-string.c
|
||||||
|
|
||||||
|
|
||||||
|
sources = \
|
||||||
del_op.cc \
|
del_op.cc \
|
||||||
del_opnt.cc \
|
del_opnt.cc \
|
||||||
del_opv.cc \
|
del_opv.cc \
|
||||||
del_opvnt.cc \
|
del_opvnt.cc \
|
||||||
dyn-string.c \
|
|
||||||
eh_alloc.cc \
|
eh_alloc.cc \
|
||||||
eh_aux_runtime.cc \
|
eh_aux_runtime.cc \
|
||||||
eh_catch.cc \
|
eh_catch.cc \
|
||||||
|
@ -203,7 +205,7 @@ sources = \
|
||||||
vec.cc
|
vec.cc
|
||||||
|
|
||||||
|
|
||||||
libsupc___la_SOURCES = $(sources)
|
libsupc___la_SOURCES = $(sources) $(c_sources)
|
||||||
libsupc__convenience_la_SOURCES = $(sources)
|
libsupc__convenience_la_SOURCES = $(sources)
|
||||||
|
|
||||||
glibcppinstalldir = @gxx_include_dir@
|
glibcppinstalldir = @gxx_include_dir@
|
||||||
|
@ -211,10 +213,18 @@ glibcppinstall_HEADERS = $(headers)
|
||||||
|
|
||||||
LIBSUPCXX_CXXFLAGS = $(LIBSUPCXX_PICFLAGS)
|
LIBSUPCXX_CXXFLAGS = $(LIBSUPCXX_PICFLAGS)
|
||||||
|
|
||||||
|
# Use special rules for pulling things out of libiberty. These
|
||||||
|
# objects should be compiled with the "C" compiler, not the C++
|
||||||
|
# compiler, and also should not use the C++ includes.
|
||||||
|
C_COMPILE = \
|
||||||
|
$(CC) $(DEFS) $(GCC_INCLUDES) \
|
||||||
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# LTCOMPILE is copied from LTCXXCOMPILE below.
|
# LTCOMPILE is copied from LTCXXCOMPILE below.
|
||||||
LTCOMPILE = $(LIBTOOL) --tag CC --tag disable-shared \
|
LTCOMPILE = $(LIBTOOL) --tag CC --tag disable-shared --mode=compile $(CC) \
|
||||||
--mode=compile $(CC) $(DEFS) $(INCLUDES) \
|
$(DEFS) $(GCC_INCLUDES) \
|
||||||
$(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(AM_CXXFLAGS)
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(AM_CXXFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# AM_CXXFLAGS needs to be in each subdirectory so that it can be
|
# AM_CXXFLAGS needs to be in each subdirectory so that it can be
|
||||||
|
@ -277,18 +287,18 @@ LDFLAGS = @LDFLAGS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
libsupc__convenience_la_LDFLAGS =
|
libsupc__convenience_la_LDFLAGS =
|
||||||
libsupc__convenience_la_LIBADD =
|
libsupc__convenience_la_LIBADD =
|
||||||
libsupc__convenience_la_OBJECTS = cxa_demangle.lo del_op.lo del_opnt.lo \
|
libsupc__convenience_la_OBJECTS = del_op.lo del_opnt.lo del_opv.lo \
|
||||||
del_opv.lo del_opvnt.lo dyn-string.lo eh_alloc.lo eh_aux_runtime.lo \
|
del_opvnt.lo eh_alloc.lo eh_aux_runtime.lo eh_catch.lo eh_exception.lo \
|
||||||
eh_catch.lo eh_exception.lo eh_globals.lo eh_personality.lo \
|
eh_globals.lo eh_personality.lo eh_terminate.lo eh_throw.lo eh_type.lo \
|
||||||
eh_terminate.lo eh_throw.lo eh_type.lo new_handler.lo new_op.lo \
|
new_handler.lo new_op.lo new_opnt.lo new_opv.lo new_opvnt.lo pure.lo \
|
||||||
new_opnt.lo new_opv.lo new_opvnt.lo pure.lo tinfo.lo tinfo2.lo vec.lo
|
tinfo.lo tinfo2.lo vec.lo
|
||||||
libsupc___la_LDFLAGS =
|
libsupc___la_LDFLAGS =
|
||||||
libsupc___la_LIBADD =
|
libsupc___la_LIBADD =
|
||||||
libsupc___la_OBJECTS = cxa_demangle.lo del_op.lo del_opnt.lo del_opv.lo \
|
libsupc___la_OBJECTS = del_op.lo del_opnt.lo del_opv.lo del_opvnt.lo \
|
||||||
del_opvnt.lo dyn-string.lo eh_alloc.lo eh_aux_runtime.lo eh_catch.lo \
|
eh_alloc.lo eh_aux_runtime.lo eh_catch.lo eh_exception.lo eh_globals.lo \
|
||||||
eh_exception.lo eh_globals.lo eh_personality.lo eh_terminate.lo \
|
eh_personality.lo eh_terminate.lo eh_throw.lo eh_type.lo new_handler.lo \
|
||||||
eh_throw.lo eh_type.lo new_handler.lo new_op.lo new_opnt.lo new_opv.lo \
|
new_op.lo new_opnt.lo new_opv.lo new_opvnt.lo pure.lo tinfo.lo \
|
||||||
new_opvnt.lo pure.lo tinfo.lo tinfo2.lo vec.lo
|
tinfo2.lo vec.lo cxa_demangle.lo dyn-string.lo
|
||||||
CXXFLAGS = @CXXFLAGS@
|
CXXFLAGS = @CXXFLAGS@
|
||||||
CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
||||||
CXXLD = $(CXX)
|
CXXLD = $(CXX)
|
||||||
|
@ -541,21 +551,20 @@ mostlyclean-generic distclean-generic clean-generic \
|
||||||
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
# Use special rules for pulling things out of libiberty.
|
|
||||||
cxa_demangle.c:
|
cxa_demangle.c:
|
||||||
rm -f $@
|
rm -f $@
|
||||||
$(LN_S) $(toplevel_srcdir)/libiberty/cp-demangle.c $@
|
$(LN_S) $(toplevel_srcdir)/libiberty/cp-demangle.c $@
|
||||||
cxa_demangle.lo: cxa_demangle.c
|
cxa_demangle.lo: cxa_demangle.c
|
||||||
$(LTCOMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
$(LTCOMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
||||||
cxa_demangle.o: cxa_demangle.c
|
cxa_demangle.o: cxa_demangle.c
|
||||||
$(COMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
$(C_COMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
||||||
dyn-string.c:
|
dyn-string.c:
|
||||||
rm -f $@
|
rm -f $@
|
||||||
$(LN_S) $(toplevel_srcdir)/libiberty/dyn-string.c $@
|
$(LN_S) $(toplevel_srcdir)/libiberty/dyn-string.c $@
|
||||||
dyn-string.lo: dyn-string.c
|
dyn-string.lo: dyn-string.c
|
||||||
$(LTCOMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
$(LTCOMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
||||||
dyn-string.o: dyn-string.c
|
dyn-string.o: dyn-string.c
|
||||||
$(COMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
$(C_COMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
||||||
|
|
||||||
# We have to have rules modified from the default to counteract SUN make
|
# We have to have rules modified from the default to counteract SUN make
|
||||||
# prepending each of $(glibcppinstall_HEADERS) with VPATH below.
|
# prepending each of $(glibcppinstall_HEADERS) with VPATH below.
|
||||||
|
|
|
@ -75,7 +75,6 @@ CLOCALE_H = @CLOCALE_H@
|
||||||
CMESSAGES_H = @CMESSAGES_H@
|
CMESSAGES_H = @CMESSAGES_H@
|
||||||
CPP = @CPP@
|
CPP = @CPP@
|
||||||
CPU_LIMITS_INC_SRCDIR = @CPU_LIMITS_INC_SRCDIR@
|
CPU_LIMITS_INC_SRCDIR = @CPU_LIMITS_INC_SRCDIR@
|
||||||
CSHADOW_FLAGS = @CSHADOW_FLAGS@
|
|
||||||
CSTDIO_H = @CSTDIO_H@
|
CSTDIO_H = @CSTDIO_H@
|
||||||
CXX = @CXX@
|
CXX = @CXX@
|
||||||
CXXCPP = @CXXCPP@
|
CXXCPP = @CXXCPP@
|
||||||
|
|
|
@ -41,7 +41,7 @@ OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
|
||||||
# or configure.in to see how they are set. See GLIBCPP_EXPORT_FLAGS
|
# 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.
|
# NB: DEBUGFLAGS have to be at the end so that -O2 can be overridden.
|
||||||
CONFIG_CXXFLAGS = \
|
CONFIG_CXXFLAGS = \
|
||||||
@EXTRA_CXX_FLAGS@ @SECTION_FLAGS@ @CSHADOW_FLAGS@ @DEBUG_FLAGS@
|
@EXTRA_CXX_FLAGS@ @SECTION_FLAGS@ @DEBUG_FLAGS@
|
||||||
|
|
||||||
# Warning flags to use.
|
# Warning flags to use.
|
||||||
WARN_CXXFLAGS = \
|
WARN_CXXFLAGS = \
|
||||||
|
|
|
@ -74,7 +74,6 @@ CLOCALE_H = @CLOCALE_H@
|
||||||
CMESSAGES_H = @CMESSAGES_H@
|
CMESSAGES_H = @CMESSAGES_H@
|
||||||
CPP = @CPP@
|
CPP = @CPP@
|
||||||
CPU_LIMITS_INC_SRCDIR = @CPU_LIMITS_INC_SRCDIR@
|
CPU_LIMITS_INC_SRCDIR = @CPU_LIMITS_INC_SRCDIR@
|
||||||
CSHADOW_FLAGS = @CSHADOW_FLAGS@
|
|
||||||
CSTDIO_H = @CSTDIO_H@
|
CSTDIO_H = @CSTDIO_H@
|
||||||
CXXCPP = @CXXCPP@
|
CXXCPP = @CXXCPP@
|
||||||
C_INCLUDE_DIR = @C_INCLUDE_DIR@
|
C_INCLUDE_DIR = @C_INCLUDE_DIR@
|
||||||
|
@ -145,7 +144,7 @@ OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
|
||||||
# or configure.in to see how they are set. See GLIBCPP_EXPORT_FLAGS
|
# 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.
|
# NB: DEBUGFLAGS have to be at the end so that -O2 can be overridden.
|
||||||
CONFIG_CXXFLAGS = \
|
CONFIG_CXXFLAGS = \
|
||||||
@EXTRA_CXX_FLAGS@ @SECTION_FLAGS@ @CSHADOW_FLAGS@ @DEBUG_FLAGS@
|
@EXTRA_CXX_FLAGS@ @SECTION_FLAGS@ @DEBUG_FLAGS@
|
||||||
|
|
||||||
|
|
||||||
# Warning flags to use.
|
# Warning flags to use.
|
||||||
|
|
|
@ -75,7 +75,6 @@ CLOCALE_H = @CLOCALE_H@
|
||||||
CMESSAGES_H = @CMESSAGES_H@
|
CMESSAGES_H = @CMESSAGES_H@
|
||||||
CPP = @CPP@
|
CPP = @CPP@
|
||||||
CPU_LIMITS_INC_SRCDIR = @CPU_LIMITS_INC_SRCDIR@
|
CPU_LIMITS_INC_SRCDIR = @CPU_LIMITS_INC_SRCDIR@
|
||||||
CSHADOW_FLAGS = @CSHADOW_FLAGS@
|
|
||||||
CSTDIO_H = @CSTDIO_H@
|
CSTDIO_H = @CSTDIO_H@
|
||||||
CXXCPP = @CXXCPP@
|
CXXCPP = @CXXCPP@
|
||||||
C_INCLUDE_DIR = @C_INCLUDE_DIR@
|
C_INCLUDE_DIR = @C_INCLUDE_DIR@
|
||||||
|
|
Loading…
Add table
Reference in a new issue