Apple-Boost-BuildScript icon indicating copy to clipboard operation
Apple-Boost-BuildScript copied to clipboard

Include all library files when building fat library

Open zhuhaow opened this issue 7 years ago • 1 comments

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?

zhuhaow avatar Aug 03 '17 01:08 zhuhaow

That's a great idea!

faithfracture avatar Aug 03 '17 13:08 faithfracture