uClibc++: Fix three bugs
authorRosen Penev <rosenp@gmail.com>
Mon, 7 Oct 2019 22:59:52 +0000 (15:59 -0700)
committerRISCi_ATOM <bob@bobcall.me>
Wed, 23 Oct 2019 15:37:37 +0000 (11:37 -0400)
commitee69332839c1aac42a11e3aa0d2c8c7f75802ad7
tree98ea65bcb8d9cfdf337917c82372ca6f054c27ec
parent1e3b63e4558cfb600680af58771f45d74c8bda2a
uClibc++: Fix three bugs

The first allows usage of several functions in the std namespace, which
broke compilation of gddrescue specifically with uClibc-ng and uClibc++.

The second allows usage of long long with normal C++11, which is part of
the standard. Before, std=gnu++11 needed to be passsed to work around it.

As a result of the second patch, the pedantic patch can safely be removed.

Both patches are upstream backports.

Added -std=c++11 to CFLAGS to guarentee proper inclusion of long long.

Added another patch that fixes a typo with the long long support. Sent to
upstream.

Fixed up license information according to SPDX.

Small cleanups for consistency.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit 6ab386c9bc23420816fbcefc84b62cf5438b2c66)
package/libs/uclibc++/Makefile
package/libs/uclibc++/patches/002-undef-functions.patch [new file with mode: 0644]
package/libs/uclibc++/patches/003-no-fPIC.patch
package/libs/uclibc++/patches/004-no-pedantic.patch [deleted file]
package/libs/uclibc++/patches/004-uClibc-Make-long-long-available-to-C-11.patch [new file with mode: 0644]
package/libs/uclibc++/patches/005-istream_helpers-Fix-sscanf-typo.patch [new file with mode: 0644]