]> khamidou — GitHub mirrors - electron.git/commitdiff
linux: Fix relocation error when compiling as shared library
authorCheng Zhao <zcbenz@gmail.com>
Wed, 1 Apr 2015 15:44:55 +0000 (23:44 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 1 Apr 2015 15:44:55 +0000 (23:44 +0800)
common.gypi

index 17e9fd9ff0782a73dbad083b208386ebcff48846..d39d20ec4571755eaf3051b1ef79d2c6e6a8d0ef 100644 (file)
@@ -95,6 +95,8 @@
               '-Wno-unused-value',
               '-Wno-deprecated-declarations',
               '-Wno-return-type',
+              # Fix relocation error when compiling as shared library.
+              '-fPIC',
             ],
           }],
         ],