I was wondering if it would be possible to provide a library someplace for
the GNU version of getopt()?  I've seen a lot of source code in the tree,
and whenever a program in /usr/src/{gnu,contrib} needs to link to the GNU
version of getopt() and getopt_long(), there were source files provided in
that directory for these functions, e.g. getopt1.c and getopt.h.  I think
it would be easier to build and install a lib in /usr/lib for some of the
frequently used GNU functions.  We could call it /usr/lib/libcontrib.a or
libgnucompat.a, or something like that.

The reason I'm asking is that I'm seeing a lot of GNU software that needs
to use GNU's getopt() and getopt_long().  I think it's a lot cleaner than
just putting getopt*.[ch] in every contrib or gnu directory that needs
it.  The app that needs these functions can then link to
libgnucompat.a.  We could also provide a header file someplace that
provides these functions, e.g. <gnucompat.h> or <gnu.h>.

Well, it's not that big of a deal, but there is a certain percentage of
GNU software that requires some GNU library functions.

Comments?

- Donn



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to