From: Cheng Zhao Date: Wed, 1 Apr 2015 15:44:55 +0000 (+0800) Subject: linux: Fix relocation error when compiling as shared library X-Git-Tag: v0.23.0~14^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=95528f92074ab854d3f5879d46159a6b9c4413bf;p=electron.git linux: Fix relocation error when compiling as shared library --- diff --git a/common.gypi b/common.gypi index 17e9fd9f..d39d20ec 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', ], }], ],