Chromium Code Reviews| Index: chrome/installer/linux/sysroot_scripts/sysroot-creator.sh |
| diff --git a/chrome/installer/linux/sysroot_scripts/sysroot-creator.sh b/chrome/installer/linux/sysroot_scripts/sysroot-creator.sh |
| index 1fef249da231468ef279ed756398c97f5966de73..609b0b5e0d49ddf04474965b4cf01978e9609215 100644 |
| --- a/chrome/installer/linux/sysroot_scripts/sysroot-creator.sh |
| +++ b/chrome/installer/linux/sysroot_scripts/sysroot-creator.sh |
| @@ -315,6 +315,25 @@ HacksAndPatchesARM() { |
| } |
| +HacksAndPatchesMips() { |
| + Banner "Misc Hacks & Patches" |
| + # these are linker scripts with absolute pathnames in them |
| + # which we rewrite here |
| + lscripts="${INSTALL_ROOT}/usr/lib/mipsel-linux-gnu/libpthread.so \ |
| + ${INSTALL_ROOT}/usr/lib/mipsel-linux-gnu/libc.so" |
| + |
| + #SubBanner "Rewriting Linker Scripts" |
|
Lei Zhang
2015/06/04 22:43:45
Either uncomment or erase.
|
| + sed -i -e 's|/usr/lib/mipsel-linux-gnu/||g' ${lscripts} |
| + sed -i -e 's|/lib/mipsel-linux-gnu/||g' ${lscripts} |
| + |
| + # This is for chrome's ./build/linux/pkg-config-wrapper |
| + # which overwrites PKG_CONFIG_PATH internally |
| + SubBanner "Package Configs Symlink" |
| + mkdir -p ${INSTALL_ROOT}/usr/share |
| + ln -s ../lib/mipsel-linux-gnu/pkgconfig ${INSTALL_ROOT}/usr/share/pkgconfig |
| +} |
| + |
| + |
| InstallIntoSysroot() { |
| Banner "Install Libs And Headers Into Jail" |
| @@ -363,7 +382,7 @@ CleanupJailSymlinks() { |
| case "${link}" in |
| usr/lib/gcc/x86_64-linux-gnu/4.*/* | usr/lib/gcc/i486-linux-gnu/4.*/* | \ |
| usr/lib/gcc/arm-linux-gnueabihf/4.*/* | \ |
| - usr/lib/gcc/misel-linux-gnu/4.*/*) |
| + usr/lib/gcc/mipsel-linux-gnu/4.*/*) |
| # Relativize the symlink. |
| ln -snfv "../../../../..${target}" "${link}" |
| ;; |