From 95528f92074ab854d3f5879d46159a6b9c4413bf Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 1 Apr 2015 23:44:55 +0800 Subject: [PATCH] linux: Fix relocation error when compiling as shared library --- common.gypi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common.gypi b/common.gypi index 17e9fd9ff..d39d20ec4 100644 --- a/common.gypi +++ b/common.gypi @@ -95,6 +95,8 @@ '-Wno-unused-value', '-Wno-deprecated-declarations', '-Wno-return-type', + # Fix relocation error when compiling as shared library. + '-fPIC', ], }], ],