Gcc linking and mixed static and dynamic linking Mar 20, 2015 • Lars Windolf – GCC syntax schema to link some libraries statically and others dynamically: gcc <options> <sources> -o <binary> -Wl,-Bstatic <list of static libs> -Wl,Bdynamic <list of dynamic libs> Please enable JavaScript to view the comments powered by Disqus.