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