--- a/sandbox/linux/BUILD.gn +++ b/sandbox/linux/BUILD.gn @@ -313,6 +313,12 @@ if (is_linux) { # These files have a suspicious comparison. # TODO fix this and re-enable this warning. "-Wno-sign-compare", + + "-fPIE", + ] + + ldflags = [ + "-pie", ] import("//build/config/compiler/compiler.gni")