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 17e9fd9..d39d20e 100644 (file)
@@ -95,6 +95,8 @@
               '-Wno-unused-value',
               '-Wno-deprecated-declarations',
               '-Wno-return-type',
+              # Fix relocation error when compiling as shared library.
+              '-fPIC',
             ],
           }],
         ],