chris...@astron.com (Christos Zoulas) writes:

> Yes, doesn't libcompat provide our getopt()? Or are you trying to compile
> this standalone?

It does, but from what I understand, we replace only getopt_long()
unconditionnally and use the host's getopt() if the optind variable can
be linked against.

Confirmed on a Linux host in <tooldir>/lib:

$ nm libnbcompat.a | grep getopt
getopt_long.lo:
0000000000000098 T __nbcompat_getopt_long
$ 

I agree it would be nicer to use always our getopt().

 Aymeric

Reply via email to