In addition to Doke Scott's patch, I did also patch getopt.c and getopt1.c because getopt.h of Solaris' libc already contains everything that is needed, which means it has GNU-like getopt_long() and getopt_long_only(). I am not sure whether this is the correct way of getting rid of the "internal getopt compilation", at least it does its job.
In addition to Doke Scott's patch, I did also patch getopt.c and getopt1.c because getopt.h of Solaris' libc already contains everything that is needed, which means it has GNU-like getopt_long() and getopt_long_only(). I am not sure whether this is the correct way of getting rid of the "internal getopt compilation", at least it does its job.