15

can any body guide us on how to build static version of the Poco C++ libraries ?

Nicol Bolas
  • 449,505
  • 63
  • 781
  • 982
Ravikumar Tulugu
  • 1,702
  • 2
  • 18
  • 40

1 Answers1

16

Assuming you use you use autotools to build Poco, run ./configure with the --static flag.

$ ./configure --static

See ./configure --help for a full list of flags.

Benjamin Bannier
  • 55,163
  • 11
  • 60
  • 80
  • 5
    is there a way to get it to build only release (non debug) libraries? – proteneer Feb 04 '14 at 23:38
  • Setting the `DEFAULT_TARGET` does not work. So I changed the lines that set the `DEFAULT_TARGET` as `all_shared`, `all_static` to `shared_release` and `static_release` in `build/rules/global`. That seems to work. – Yusuf Tarık Günaydın May 17 '19 at 14:11