uclibc: Fix getopt implementations conditional compilation
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 16 Mar 2015 23:30:27 +0000 (02:30 +0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 20 Mar 2015 22:44:04 +0000 (23:44 +0100)
commit1919d3c287fda2eab4373c5b4ef26f0ea3dc4f8a
tree7c604938505835d9d71af334004bbc40f090cc63
parent9bdf592654164ec7331c4e377b079302ed6da0e9
uclibc: Fix getopt implementations conditional compilation

There's no way to disable getsubopt in uClibc 0.9.33.2: either GNU or
SUSv3 getsubopt is always built.

Properly exclude SUSv3 getsubopt implementation when GNU getopt is
selected.
Exclude GNU getsubopt when SUSv3 getopt is selected. Honor getopt_long
configuration.

This brings UCLIBC_HAS_GNU_GETOPT, UCLIBC_HAS_GNU_GETSUBOPT and
UCLIBC_HAS_GETOPT_LONG handling in sync with uClibc and uClibc-ng tips.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/uclibc/0.9.33.2/0068-Fix-getopt-implementations-conditional-compilation.patch [new file with mode: 0644]