Dash:
[t2-trunk.git] / architecture / avr32 / package / gcc / gxx_include.patch.cross0
blob01d76bcb5de4ad093d6ca817a0fcfadd0dfa175f
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: architecture/avr32/package/*/gxx_include.patch.cross0
3 # Copyright (C) 2007 - 2021 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- gcc-4.2.2.atmel.1.0.8/gcc/configure.orig    2007-09-23 23:08:04.000000000 +0200
15 +++ gcc-4.2.2.atmel.1.0.8/gcc/configure 2008-10-30 14:25:02.000000000 +0100
16 @@ -1680,13 +1680,10 @@
17  # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
18  if test x${gcc_gxx_include_dir} = x; then
19    if test x${enable_version_specific_runtime_libs} = xyes; then
20 -    gcc_gxx_include_dir='${libsubdir}/include/c++'
21 +    gcc_gxx_include_dir='${CROSS_SYSTEM_HEADER_DIR}/c++'
22    else
23 -    libstdcxx_incdir='include/c++/$(version)'
24 -    if test x$host != x$target; then
25 -       libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
26 -    fi
27 -    gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
28 +    libstdcxx_incdir='c++/$(version)'
29 +    gcc_gxx_include_dir="\$(CROSS_SYSTEM_HEADER_DIR)/"${libstdcxx_incdir}
30    fi
31  fi