From eb0f9b9e23f10d8988e5426362236123aba81964 Mon Sep 17 00:00:00 2001 From: haorenW1025 Date: Thu, 23 Apr 2020 13:48:20 +0800 Subject: fix: add -fPIC flag to compiling --- lua/nvim-treesitter/install.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'lua') diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index fcad58912..b00d3d773 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 -- cgit v1.2.3-70-g09d2