In article <87bmu7l1k6....@free.fr>,
Aymeric Vincent  <aymericvinc...@free.fr> wrote:
>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().

Yes, because the glibc is not posix compliant by default.

christos

Reply via email to