argtable / argtable3

A single-file, ANSI C, command-line parsing library that parses GNU-style command-line options.
http://www.argtable.org
Other
372 stars 65 forks source link

Shared library with GCC on Linux #25

Closed tetrahedronix closed 5 years ago

tetrahedronix commented 6 years ago

Hello, I'd like to use argtable with my Go lang project but I need the shared library. It would be useful to have a Makefile entry to build it.

DavidZemon commented 5 years ago

I'm willing to create the CMake files necessary to do this and have the CMake knowledge to do it "right." Is there an active maintainer for this project that will actually accept a pull request if I submit one?

tomghuang commented 5 years ago

@DavidZemon Yes, I'm the maintainer. You're welcome to submit a pull request. Thanks.

DavidZemon commented 5 years ago

Wonderful! Happy to hear it. I'm nearly done - it works for native Linux x86-64 but am testing to make sure I can cross-compile for the STM32 microcontroller that initially brought me to your repo. Work-in-progress is here: https://github.com/wsbu/argtable3/tree/feature/update-cmake

DavidZemon commented 5 years ago

Took a lot longer to get all the kinks worked out, but finally done. Pull request opened as #27

tomghuang commented 5 years ago

@tetravalence The latest release has supported building the shared library (on both Linux and Windows). You can follow the instruction on README.md to build a specific version of the library.

Please follow the instruction to build a tagged version (such as 3.1.2.bb37058), because the library from the tagged version will have correct version number in the file name. If you build from the project root directory, the version will always be 0.0.0.