Skip to content
Chris MacMackin edited this page Dec 18, 2016 · 2 revisions

Build a library

Build a library involves some different steps with respect the building of a program. Consequently, FoBiS.py offers a rather primitive support for building libraries, both static and shared. Presently, this feature can be used only within -target switch: as a matter of fact, when building a library only its own compiled object should be linked, thus the target option is required. Notably, this should work only on Unix-like architectures. To build a library we must use the -mklib option

FoBiS.py build -t mylib.f90 -mklib static

FoBiS.py build -t mylib.f90 -mklib shared

Into examples directory there is an example of a cumbersome library building.

Clone this wiki locally