From 427f2b5c965f7a2c282ec0f56f44c79e68edfc0601e894e5157e505d0a773153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 24 Jun 2015 10:05:05 +0000 Subject: [PATCH] - Add cpprest-pthread.patch to fix unit test linking OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpprest?expand=0&rev=6 --- cpprest-pthread.patch | 11 +++++++++++ cpprest.changes | 5 +++++ cpprest.spec | 2 ++ 3 files changed, 18 insertions(+) create mode 100644 cpprest-pthread.patch diff --git a/cpprest-pthread.patch b/cpprest-pthread.patch new file mode 100644 index 0000000..3ddf9f7 --- /dev/null +++ b/cpprest-pthread.patch @@ -0,0 +1,11 @@ +Index: x/Release/tests/common/UnitTestpp/CMakeLists.txt +=================================================================== +--- x.orig/Release/tests/common/UnitTestpp/CMakeLists.txt ++++ x/Release/tests/common/UnitTestpp/CMakeLists.txt +@@ -49,4 +49,4 @@ elseif(WIN32) + endif() + + add_library(${LIB}unittestpp ${UT_SOURCES}) +-target_link_libraries(${LIB}unittestpp ${ANDROID_STL_FLAGS}) +\ No newline at end of file ++target_link_libraries(${LIB}unittestpp ${ANDROID_STL_FLAGS} pthread) diff --git a/cpprest.changes b/cpprest.changes index b91c715..4b0d884 100644 --- a/cpprest.changes +++ b/cpprest.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 24 10:04:53 UTC 2015 - idonmez@suse.com + +- Add cpprest-pthread.patch to fix unit test linking + ------------------------------------------------------------------- Fri Jun 12 09:00:49 UTC 2015 - astieger@suse.com diff --git a/cpprest.spec b/cpprest.spec index 25a1d13..c3e9295 100644 --- a/cpprest.spec +++ b/cpprest.spec @@ -26,6 +26,7 @@ License: Apache-2.0 Group: Devlopment/Libraries/C and C++ Url: https://casablanca.codeplex.com/ Source: http://download-codeplex.sec.s-msft.com/Download/SourceControlFileDownload.ashx?ProjectName=casablanca&changeSetId=c7d85ee385c6#/%{name}-%{version}.zip +Patch1: cpprest-pthread.patch BuildRequires: boost-devel BuildRequires: cmake >= 2.6 BuildRequires: gcc-c++ @@ -63,6 +64,7 @@ Development files. %prep %setup -q -c +%patch1 -p1 %build %cmake -DCMAKE_BUILD_TYPE=Release ../Release