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

Include all library files when building fat library #15

Open
zhuhaow opened this issue Aug 3, 2017 · 1 comment
Open

Include all library files when building fat library #15

zhuhaow opened this issue Aug 3, 2017 · 1 comment

Comments

@zhuhaow
Copy link

zhuhaow commented Aug 3, 2017

Currently, the script only combines libraries provided in --boost-libs, by iterating for NAME in $BOOTSTRAP_LIBS; do.

However, boost binary has dependencies, e.g, if I build log, then here is what are actually built (by default), log library and all its dependencies.

libboost_atomic.a
libboost_chrono.a         
libboost_date_time.a      
libboost_filesystem.a     
libboost_log.a           
libboost_log_setup.a      
libboost_regex.a          
libboost_system.a         
libboost_thread.a

The outputted libboost.a, however, only consists of libboost_log.a.

Sometimes, this can be worked around by also providing the list of dependencies in --boost-libs, but libboost_log_setup.a is not a standalone library, so this won't work.

Why not just take all .a files in stage folder as target library files?

@faithfracture
Copy link
Owner

That's a great idea!

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

2 participants