mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 23:24:31 +04:00
librsocket-cpp: Update to 2019-06-11
Fix compilation with newer GCC Added Maintainer. Reorganized Makefile for consistency. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
diff --git a/yarpl/CMakeLists.txt b/yarpl/CMakeLists.txt
|
||||
--- a/yarpl/CMakeLists.txt Fri May 03 07:45:18 2019 -0700
|
||||
+++ b/yarpl/CMakeLists.txt Tue May 07 02:03:23 2019 -0700
|
||||
@@ -21,7 +21,11 @@
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-parameter")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-weak-vtables -Wno-padded")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer")
|
||||
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -momit-leaf-frame-pointer")
|
||||
+ include(CheckCXXCompilerFlag)
|
||||
+ CHECK_CXX_COMPILER_FLAG("-momit-leaf-frame-pointer" HAVE_OMIT_LEAF_FRAME_POINTER)
|
||||
+ if(HAVE_OMIT_LEAF_FRAME_POINTER)
|
||||
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -momit-leaf-frame-pointer")
|
||||
+ endif()
|
||||
endif()
|
||||
|
||||
if(YARPL_WRAP_SHARED_IN_LOCK)
|
||||
11
libs/librsocket-cpp/patches/102-gcc9.patch
Normal file
11
libs/librsocket-cpp/patches/102-gcc9.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/yarpl/Refcounted.h
|
||||
+++ b/yarpl/Refcounted.h
|
||||
@@ -42,7 +42,7 @@ std::shared_ptr<T> atomic_exchange(
|
||||
auto refptr = ar->ref.lock();
|
||||
auto old = std::move(*refptr);
|
||||
*refptr = std::move(r);
|
||||
- return std::move(old);
|
||||
+ return old;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
Reference in New Issue
Block a user