C++ User's Guide

Values

binding must be one of the following:

Value of binding

Meaning 

dynamic

 

Directs the link editor to look for liblib.so (shared) files, and if they are not found, to look for liblib.a (static, nonshared) files. Use this option if you want shared library bindings for linking.

static

 

Directs the link editor to look only for liblib.a (static, nonshared) files. Use this option if you want nonshared library bindings for linking.

(No space is allowed between -B and dynamic or static.)