[backfire] toolchain: fix gcc 3.4.6 (brcm-2.4) after relocation from usr/, refresh...
[openwrt/svn-archive/archive.git] / toolchain / gcc / patches / 3.4.6 / 920-no-usr-system-root.patch
1 --- a/gcc/configure
2 +++ b/gcc/configure
3 @@ -4766,7 +4766,7 @@ if test "${with_sysroot+set}" = set; the
4 esac
5
6 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7 - CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
8 + CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)/include'
9
10 if test "x$exec_prefix" = xNONE; then
11 if test "x$prefix" = xNONE; then
12 --- a/gcc/configure.ac
13 +++ b/gcc/configure.ac
14 @@ -576,7 +576,7 @@ AC_ARG_WITH(sysroot,
15 esac
16
17 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
18 - CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
19 + CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)/include'
20
21 if test "x$exec_prefix" = xNONE; then
22 if test "x$prefix" = xNONE; then