a getopt[_long] implementation with GNU semantics, taken from netbsd
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
rofl0r c1a8474040 add tool to create a dist tarball 9 years ago
.gitignore init 9 years ago
Makefile fix install target 9 years ago
README fix typo 9 years ago
create-dist.sh add tool to create a dist tarball 9 years ago
gnu_getopt.c update copyright info 9 years ago
gnu_getopt.h change names 9 years ago

README

gnu getopt compatibility package for musl

usage:
make; make prefix= DESTDIR= install

then to compile a package, add to
CFLAGS="-Dgetopt=gnu_getopt -Dgetopt_long=gnu_getopt_long -Dgetopt_long_only=gnu_getopt_long_only"
LDFLAGS="-lgnu_getopt"