Browse Source

Revert "build: enable PIE when compiling Linux builds, fix #14961. (#15148)"

This reverts commit 2f2761fa47f9eb34783269b453cdc8e76995c6d2.
Samuel Attard 6 years ago
parent
commit
e00d217cfb
3 changed files with 0 additions and 14 deletions
  1. 0 2
      brightray/brightray.gyp
  2. 0 1
      common.gypi
  3. 0 11
      electron.gyp

+ 0 - 2
brightray/brightray.gyp

@@ -74,8 +74,6 @@
           },
           'cflags': [
             '<!@(<(pkg-config) --cflags <(linux_system_libraries))',
-            # Needed for PIE
-            '-fPIC',
           ],
           'direct_dependent_settings': {
             'cflags': [

+ 0 - 1
common.gypi

@@ -232,7 +232,6 @@
           ['OS=="linux"', {
             'cflags': [
               '-Wno-empty-body',
-              '-fPIC',
             ],
           }],  # OS=="linux"
           ['OS=="win"', {

+ 0 - 11
electron.gyp

@@ -235,16 +235,6 @@
               ],
             },
           ],
-          'link_settings': {
-            'ldflags': [
-              # Build as Position-Independent Executable to mitigate exploitations.
-              '-pie',
-            ],
-          },
-          'cflags_cc': [
-            # Needed for PIE
-            '-fPIC',
-          ]
         }],  # OS=="linux"
       ],
     },  # target <(project_name)
@@ -392,7 +382,6 @@
           # Required settings of using breakpad.
           'cflags_cc': [
             '-Wno-empty-body',
-            '-fPIC',
           ],
           'include_dirs': [
             'vendor/breakpad/src',