Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support passing -fPIC to all packages dependent on shared packages #1074

Closed
waruqi opened this issue Nov 26, 2020 · 2 comments
Closed

Support passing -fPIC to all packages dependent on shared packages #1074

waruqi opened this issue Nov 26, 2020 · 2 comments

Comments

@waruqi
Copy link
Member

waruqi commented Nov 26, 2020

package()
    on_install(package)
        if package:config("pic") then -- enabled by default
           -- ..
        end
    end

We can also disable pic manually.

add_requires("xxx", {configs = {pic = false}})

Or rewrite depconfigs, see #1178

add_requireconfs("libwebp.**|cmake",   {configs = {pic = false}})
@waruqi
Copy link
Member Author

waruqi commented Dec 30, 2020

#1175

@waruqi
Copy link
Member Author

waruqi commented Jan 2, 2021

we need improve package deps first. #1178

@waruqi waruqi closed this as completed Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant