From 2a92e17ee99cce211bb2dccb134abeb087218a25 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 15 Nov 2022 23:26:44 +0800 Subject: pass fpic to asflags --- xmake/modules/package/tools/autoconf.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/xmake/modules/package/tools/autoconf.lua b/xmake/modules/package/tools/autoconf.lua index fe0901ad1..76952738c 100644 --- a/xmake/modules/package/tools/autoconf.lua +++ b/xmake/modules/package/tools/autoconf.lua @@ -250,6 +250,7 @@ function buildenvs(package, opt) if package:is_plat("linux") and package:config("pic") ~= false then table.insert(cflags, "-fPIC") table.insert(cxxflags, "-fPIC") + table.insert(asflags, "-fPIC") end if package:config("lto") then table.join2(cflags, package:_generate_lto_configs("cc").cflags) -- cgit v1.3.1