Browse Source

chore: enable -pie for linux builds (#14962)

Closes #14961
Samuel Attard 6 years ago
parent
commit
3805c5f538
1 changed files with 2 additions and 0 deletions
  1. 2 0
      BUILD.gn

+ 2 - 0
BUILD.gn

@@ -728,6 +728,8 @@ if (is_mac) {
       ]
     }
     if (is_linux) {
+      ldflags = [ "-pie" ]
+
       if (!is_component_build && is_component_ffmpeg) {
         configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
       }