Linked pthread in a Makefile to prevent build failures.

This commit is contained in:
Praveen K Paladugu 2009-11-12 18:10:57 +00:00
parent 9dd9b23dc7
commit a3578169be
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up wsmancli-2.1.0/examples/cpp/Makefile.in.old wsmancli-2.1.0/examples/cpp/Makefile.in
--- wsmancli-2.1.0/examples/cpp/Makefile.in.old 2009-11-06 10:29:49.000000000 -0600
+++ wsmancli-2.1.0/examples/cpp/Makefile.in 2009-11-06 10:29:20.000000000 -0600
@@ -158,7 +158,7 @@ target_alias = @target_alias@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
LDADD = \
- -lwsman -lwsman_clientpp
+ -lwsman -lpthread -lwsman_clientpp
EnumInstance_SOURCES = \
EnumInstance.cpp

View File

@ -1,6 +1,6 @@
Name: wsmancli
Version: 2.1.0
Release: 3%{dist}
Release: 4%{dist}
License: BSD
Url: http://www.openwsman.org/
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
@ -8,6 +8,7 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXXX)
Group: Applications/System
BuildRequires: openwsman-devel >= 2.1.0 pkgconfig curl-devel
Requires: openwsman curl
Patch0: missing-pthread-symbols.patch
Summary: WS-Management-Command line Interface
%description
@ -16,6 +17,7 @@ systems using Web Services Management protocol.
%prep
%setup -q
%patch0 -p1
%build
%configure --disable-more-warnings
@ -35,6 +37,8 @@ rm -rf %{buildroot}
%doc COPYING README
%changelog
* Fri Nov 6 2009 Praveen K Paladugu <praveen_paladugu@dell.com> - 2.1.0-4
- Missing symbols from pthread library.
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild