[cfe-users] (OS X) Combine .a's into one .dylib

Lucas Soltic lucas.soltic at orange.fr
Fri Apr 4 01:07:19 PDT 2014


Le 3 avr. 2014 à 21:01, Kevin Ingwersen <ingwie2000 at googlemail.com> a écrit :

> Hey there!
> 
> During a build process, I am creating quite some libraries. I now want to combine the various static libraries into one dynamic library…but whatever I tried, I only got an 8KB large file, it disappointed me somewhat. What would be the proper way of doing this?
> 
> Kind regards, Ingwie.
> _______________________________________________
> cfe-users mailing list
> cfe-users at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users

Hello Ingwie,

I guess the -all_load option is what you need:
man ld:
-all_load   Loads all members of static archive libraries.

Or -force_load if you want to load all the symbols from a specific archive only.

Lucas



More information about the cfe-users mailing list