faithfracture / Apple-Boost-BuildScript

Script for building Boost for Apple platforms (iOS, iOS Simulator, tvOS, tvOS Simulator, OS X)
279 stars 111 forks source link

Include all library files when building fat library #15

Open zhuhaow opened 7 years ago

zhuhaow commented 7 years ago

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 commented 7 years ago

That's a great idea!