xref: /netbsd-src/external/gpl3/binutils/dist/config/libstdc++-raw-cxx.m4 (revision 9573673d78c64ea1eac42d7f2e9521be89932ae5)
1*9573673dSchristos# This file is part of GCC.
2*9573673dSchristos#
3*9573673dSchristos# GCC is free software; you can redistribute it and/or modify it under
4*9573673dSchristos# the terms of the GNU General Public License as published by the Free
5*9573673dSchristos# Software Foundation; either version 3, or (at your option) any later
6*9573673dSchristos# version.
7*9573673dSchristos#
8*9573673dSchristos# GCC is distributed in the hope that it will be useful, but WITHOUT
9*9573673dSchristos# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10*9573673dSchristos# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
11*9573673dSchristos# for more details.
12*9573673dSchristos#
13*9573673dSchristos# You should have received a copy of the GNU General Public License
14*9573673dSchristos# along with GCC; see the file COPYING3.  If not see
15*9573673dSchristos# <http://www.gnu.org/licenses/>.
16*9573673dSchristos
17*9573673dSchristos# Define flags, LIBSTDCXX_RAW_CXX_CXXFLAGS and # LIBSTDCXX_RAW_CXX_LDFLAGS,
18*9573673dSchristos# for libstdc++-v3 header files to compile and link libraries in C++ with
19*9573673dSchristos# raw_cxx=true.
20*9573673dSchristosAC_DEFUN([GCC_LIBSTDCXX_RAW_CXX_FLAGS], [
21*9573673dSchristos  AC_REQUIRE([ACX_NONCANONICAL_TARGET])
22*9573673dSchristos  LIBSTDCXX_RAW_CXX_CXXFLAGS="\
23*9573673dSchristos    -I\$(top_builddir)/../libstdc++-v3/include \
24*9573673dSchristos    -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
25*9573673dSchristos    -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
26*9573673dSchristos  LIBSTDCXX_RAW_CXX_LDFLAGS="\
27*9573673dSchristos    \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
28*9573673dSchristos  AC_SUBST(LIBSTDCXX_RAW_CXX_CXXFLAGS)
29*9573673dSchristos  AC_SUBST(LIBSTDCXX_RAW_CXX_LDFLAGS)
30*9573673dSchristos])
31