libstdc++-raw-cxx.m4 1.2 KB

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