uClibc++: Fix three bugs
authorRosen Penev <rosenp@gmail.com>
Mon, 7 Oct 2019 22:59:52 +0000 (15:59 -0700)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 19 Oct 2019 12:30:00 +0000 (14:30 +0200)
commit5ad47b1ed8f36693c3ef960806ca4e834106f966
treef97ea57ffca8c3fa4e66a0205d770fa56ea2fe26
parent82a3beac9df79d181d8be77e152ab2f111746615
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]