mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 00:41:17 +00:00
6ab386c9bc
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>
11 lines
280 B
Diff
11 lines
280 B
Diff
--- a/Rules.mak
|
|
+++ b/Rules.mak
|
|
@@ -185,7 +185,6 @@ export UCLIBCXX_RUNTIME_PREFIX UCLIBCXX_
|
|
|
|
WRAPPER = $(top_builddir)bin/g++-uc
|
|
OPTIMIZATION:=
|
|
-PICFLAG:=-fPIC
|
|
|
|
# use '-Os' optimization if available, else use -O2, allow Config to override
|
|
$(eval $(call check-gcc-var,-Os))
|