diff --git a/arm/raspi/build/config/compiler/BUILD.gn b/arm/raspi/build/config/compiler/BUILD.gn index f9c7710e..316bcb19 100644 --- a/arm/raspi/build/config/compiler/BUILD.gn +++ b/arm/raspi/build/config/compiler/BUILD.gn @@ -737,6 +737,11 @@ config("compiler") { } } + if (is_linux && current_cpu == "arm64") { + cflags += [ "-O3", ] + ldflags += [ "-Wl,-O3", ] + } + # This flag causes LTO to create an .ARM.attributes section with the correct # architecture. This is necessary because LLD will refuse to link a program # unless the architecture revision in .ARM.attributes is sufficiently new. @@ -2008,8 +2013,8 @@ if (is_win) { # TODO(thakis): Add LTO/PGO clang flags eventually, https://crbug.com/598772 } } else { - common_optimize_on_cflags = [] - common_optimize_on_ldflags = [] + common_optimize_on_cflags = [ "-O3", ] + common_optimize_on_ldflags = [ "-Wl,-O3", ] if (is_android) { # TODO(jdduke) Re-enable on mips after resolving linking diff --git a/src/chrome/installer/linux/common/installer.include b/src/chrome/installer/linux/common/installer.include index d39a8cc2..b302348c 100644 --- a/src/chrome/installer/linux/common/installer.include +++ b/src/chrome/installer/linux/common/installer.include @@ -174,7 +174,7 @@ stage_install_common() { install -m 644 "${OUTPUTDIR}/libffmpeg.so" "${STAGEDIR}/${INSTALLDIR}/" install -m 644 "${OUTPUTDIR}/libffmpeg.so" "${STAGEDIR}/${INSTALLDIR}/lib" install -m 644 "${OUTPUTDIR}/libblink_test_plugin.so" "${STAGEDIR}/${INSTALLDIR}/lib" - install -m 644 "${OUTPUTDIR}/ClearKeyCdm/_platform_specific/linux_x64/libclearkeycdm.so" "${STAGEDIR}/${INSTALLDIR}/lib" + install -m 644 "${OUTPUTDIR}/ClearKeyCdm/_platform_specific/linux_${ARCHITECTURE}/libclearkeycdm.so" "${STAGEDIR}/${INSTALLDIR}/lib" install -m 644 "${OUTPUTDIR}/thorium_shell.png" "${STAGEDIR}/${INSTALLDIR}/" install -m 644 "${OUTPUTDIR}/thorium-shell.desktop" "${STAGEDIR}/usr/share/applications/" install -m 755 "${OUTPUTDIR}/thorium-shell" "${STAGEDIR}/usr/bin/"