diff options
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.8.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.8/0041-libtool-avoid-libdir.patch | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.8.inc b/meta/recipes-devtools/gcc/gcc-4.8.inc index dafa2415ec..42355f2102 100644 --- a/meta/recipes-devtools/gcc/gcc-4.8.inc +++ b/meta/recipes-devtools/gcc/gcc-4.8.inc | |||
@@ -70,6 +70,7 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \ | |||
70 | file://0038-gcc-4.8-build-args.patch \ | 70 | file://0038-gcc-4.8-build-args.patch \ |
71 | file://0039-gcc-4.8-PR57717.patch \ | 71 | file://0039-gcc-4.8-PR57717.patch \ |
72 | file://0040-fix-g++-sysroot.patch \ | 72 | file://0040-fix-g++-sysroot.patch \ |
73 | file://0041-libtool-avoid-libdir.patch \ | ||
73 | " | 74 | " |
74 | SRC_URI[md5sum] = "3b2386c114cd74185aa3754b58a79304" | 75 | SRC_URI[md5sum] = "3b2386c114cd74185aa3754b58a79304" |
75 | SRC_URI[sha256sum] = "545b44be3ad9f2c4e90e6880f5c9d4f0a8f0e5f67e1ffb0d45da9fa01bb05813" | 76 | SRC_URI[sha256sum] = "545b44be3ad9f2c4e90e6880f5c9d4f0a8f0e5f67e1ffb0d45da9fa01bb05813" |
diff --git a/meta/recipes-devtools/gcc/gcc-4.8/0041-libtool-avoid-libdir.patch b/meta/recipes-devtools/gcc/gcc-4.8/0041-libtool-avoid-libdir.patch new file mode 100644 index 0000000000..2dd9610a2f --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.8/0041-libtool-avoid-libdir.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | Avoid using libdir from .la which usually points to a host path | ||
2 | |||
3 | Upstream-Status: Inappropriate [embedded specific] | ||
4 | Signed-off-by: Jonathan Liu <net147@gmail.com> | ||
5 | |||
6 | diff --git a/ltmain.sh b/ltmain.sh | ||
7 | index a03433f..1902a90 100644 | ||
8 | --- a/ltmain.sh | ||
9 | +++ b/ltmain.sh | ||
10 | @@ -5628,6 +5628,9 @@ func_mode_link () | ||
11 | absdir="$abs_ladir" | ||
12 | libdir="$abs_ladir" | ||
13 | else | ||
14 | + # Instead of using libdir from .la which usually points to a host path, | ||
15 | + # use the path the .la is contained in. | ||
16 | + libdir="$abs_ladir" | ||
17 | dir="$libdir" | ||
18 | absdir="$libdir" | ||
19 | fi | ||