summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/install.lua
diff options
context:
space:
mode:
authorhaorenW1025 <whz861025@gmail.com>2020-04-23 13:48:20 +0800
committerhaorenW1025 <whz861025@gmail.com>2020-04-23 13:48:20 +0800
commiteb0f9b9e23f10d8988e5426362236123aba81964 (patch)
treedaebdb04c94390f8fb4f1a0029ec3ff3e3c529de /lua/nvim-treesitter/install.lua
parentee5e88dca242a3c9143b69af5811f5152175f574 (diff)
fix: add -fPIC flag to compiling
Diffstat (limited to 'lua/nvim-treesitter/install.lua')
-rw-r--r--lua/nvim-treesitter/install.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua
index fcad5891..b00d3d77 100644
--- a/lua/nvim-treesitter/install.lua
+++ b/lua/nvim-treesitter/install.lua
@@ -77,6 +77,7 @@ local function run_install(cache_folder, package_path, ft, repo)
'parser.so',
'-shared',
'-lstdc++',
+ '-fPIC',
'-Os',
'-I./src',
repo.files