编译Sanbox

      chromium启动总是出现警告提示:

[4428:4428:51288848814:WARNING:zygote_host_impl_linux.cc(165)] Running without the SUID sandbox! See http://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.

        更新一下沙箱,找到src/build,执行:  ./update-linux-sandbox.sh, 提示出错:

Could not find /opt/src/chrome-svn/tarball/home/chrome-svn/tarball/chromium/src/build/../out/Debug/chrome_sandbox, please make sure you build the chrome_sandbox target

       原来是没有把Security模块的沙箱编译进来,进入src/sanbox,执行:  make -f sandbox.Makefile,报错了


/usr/bin/ld: unrecognized option '--thread-count=4'

/usr/bin/ld: unrecognized option '--threads'


/usr/bin/ld: unrecognized option '--icf=none'
/usr/bin/ld: use the --help option for usage information


打开chrome_sandbox.target.mk文件,把这几个make选项删除:--thread-count=4  --threads --icf=none

       编译通过,再把src/sanbox/out/Debug/sanbox copy 到 src/out/Debug 目录下:

cp src/sanbox/out/Debug/sanbox src/out/Debug/

       这是更新更新一下沙箱,找到src/build,执行:  ./update-linux-sandbox.sh‘

       通过! 之后启动chromium就不再提示警告信息了。



你可能感兴趣的:(编译Sanbox)