uclibc++: fix build with gcc 6.1.0, which defaults to using C++14 ABI
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
445604a915
commit
b948c9371b
|
@ -63,6 +63,7 @@ MAKE_FLAGS:= \
|
||||||
LDFLAGS="-Wl,--warn-common -Wl,--warn-once -Wl,-z,combreloc -Wl,-z,defs $(TARGET_LDFLAGS)" \
|
LDFLAGS="-Wl,--warn-common -Wl,--warn-once -Wl,-z,combreloc -Wl,-z,defs $(TARGET_LDFLAGS)" \
|
||||||
CP="$(CP)" \
|
CP="$(CP)" \
|
||||||
GEN_LIBS="-lc $(LIBGCC_S) $(SSP_LIB)" \
|
GEN_LIBS="-lc $(LIBGCC_S) $(SSP_LIB)" \
|
||||||
|
GEN_CFLAGS="-std=gnu++98 -nostdinc++" \
|
||||||
check_as_needed=
|
check_as_needed=
|
||||||
|
|
||||||
# check_as_needed overrides dependency on libgcc_s
|
# check_as_needed overrides dependency on libgcc_s
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
--- a/src/del_op.cpp
|
||||||
|
+++ b/src/del_op.cpp
|
||||||
|
@@ -24,3 +24,7 @@
|
||||||
|
_UCXXEXPORT void operator delete(void* ptr) throw(){
|
||||||
|
free(ptr);
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+_UCXXEXPORT void operator delete(void* ptr, size_t size) throw(){
|
||||||
|
+ free(ptr);
|
||||||
|
+}
|
||||||
|
--- a/src/del_opv.cpp
|
||||||
|
+++ b/src/del_opv.cpp
|
||||||
|
@@ -24,3 +24,7 @@
|
||||||
|
_UCXXEXPORT void operator delete[](void * ptr) throw(){
|
||||||
|
free(ptr);
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+_UCXXEXPORT void operator delete[](void * ptr, size_t size) throw(){
|
||||||
|
+ free(ptr);
|
||||||
|
+}
|
Loading…
Reference in New Issue