summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-07-02 00:48:49 +0800
committerruki <[email protected]>2022-07-02 00:48:49 +0800
commit5708a5c03d35f8761c3d6d07bbb3f6149a879f23 (patch)
tree80a14c384074accfd5cf4a9cd387794cc86bc998 /xmake/core/package/package.lua
parent690a5a3655ddb533234ae810f7916669f7c9f3ff (diff)
force to add ldflags for package
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 0ddee289e..0de198b90 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1705,6 +1705,11 @@ function _instance:_generate_build_configs(configs)
end
end
end
+ if configs and (configs.ldflags or configs.shflags) then
+ configs.force = {ldflags = configs.ldflags, shflags = configs.shflags}
+ configs.ldflags = nil
+ configs.shflags = nil
+ end
return configs
end