michaelrsweet / mxml

Tiny XML library.
https://www.msweet.org/mxml
Apache License 2.0
426 stars 157 forks source link

Build static library? #308

Closed wusspuss closed 5 months ago

wusspuss commented 5 months ago

How can I build a static library, .a? I don't see an option for static linking in configure --help

michaelrsweet commented 5 months ago

From the configure --help output:

  --disable-shared        turn off shared libraries, default=no

Using this option creates and installs libmxml.a instead of the corresponding shared library. Also, building the testmxml program also forces building libmxml.a, although it won't be installed without using --disable-shared.