summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-11-15 23:26:44 +0800
committerruki <[email protected]>2022-11-15 23:26:44 +0800
commit2a92e17ee99cce211bb2dccb134abeb087218a25 (patch)
tree9f346b4cca0b3757a13fe7c332a2c74899bb2d82
parentf40cd6da49ed65067d4c6060fa3605cdbd994499 (diff)
pass fpic to asflags
-rw-r--r--xmake/modules/package/tools/autoconf.lua1
1 files changed, 1 insertions, 0 deletions
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)