Fix mojo check_perms errors.


git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227624 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 227624
[NaCl SDK] Pass -O2 to linker for Release builds.

This can reduce the executable size; for example, the PNaCl bullet demo
.pexe went from ~900k -> ~600k.

NOTE: We have to separate NACL_LDFLAGS from PNACL_LDFLAGS because
pnacl-clang++ doesn't understand -Wl,-as-needed.

BUG=none
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/26547003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227625 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 227625