Creating static library with FPC

Original Reporter info from Mantis: dezlov
  • Reporter name: Denis Kozlov

Description:

Is it possible to create a static library (.a/.lib) instead of a shared library (.dll/.so)? If yes, then how? What are the steps and commands?

Documentation suggests using "-CS" flag [ http://www.freepascal.org/docs-html/prog/progsu138.html ], which doesn't seem to be supported in the current mainstream version of FPC 2.6.0.

I searched the net and found several people asking the same question, but without any real answers.

Mantis conversion info:

  • Mantis ID: 22272
  • Version: 2.6.0
  • Fixed in version: 3.0.0
  • Fixed in revision: 919 (#54eb4ac2)
  • Target version: 2.6.1
Assignee Loading
Time tracking Loading