Paul Eggert <[email protected]> writes: > On 2026-04-18 01:45, Shubham Chakraborty wrote: >> -extern int getopt (); >> +extern int getopt (int argc, char *const *argv, const char *shortopts); >> extern int getopt_long (); > > This is questionable, as getopt_long has parameters too. > > Instead, how about converting GNU 'make' to use Gnulib replacements > for fnmatch and getopt? In the long run that'll be a better solution > than this little tinkering, and it's long been on Paul's list of > things to do. See his GNU 'make' commit > f91b8bbb34ff210ad72bc529c9bd5c6102e27adc dated 2023-01-02.
It would be nice for GNU make to use more Gnulib stuff, but as Paul (Smith) writes in gl/README it would likely introduce some trouble with respect to bootstrapping. Right now the build.sh script is surprisingly small. I assume introducing more of Gnulib would make that a bit more work. Collin
