Add -std=c++11 to CXXFLAGS for fixing the build issue

This commit is contained in:
Ravindra Kumar 2015-09-14 15:50:10 -07:00
parent 5d6505062a
commit ba51a75a8d

View File

@ -28,7 +28,7 @@
Name: open-vm-tools
Version: %{toolsversion}
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Open Virtual Machine Tools for virtual machines hosted on VMware
Group: Applications/System
License: GPLv2
@ -119,7 +119,8 @@ VMware virtual machines.
# Use _DEFAULT_SOURCE to suppress warning until upstream
# is fixed. Refer https://sourceware.org/bugzilla/show_bug.cgi?id=16632.
export CFLAGS="$RPM_OPT_FLAGS -D_DEFAULT_SOURCE"
export CXXLAGS="$RPM_OPT_FLAGS -D_DEFAULT_SOURCE"
# Some sigc++-2.0 headers need C++11
export CXXFLAGS="$RPM_OPT_FLAGS -D_DEFAULT_SOURCE -std=c++11"
# Required for regenerating configure script when
# configure.ac get modified
autoreconf -i
@ -258,6 +259,10 @@ fi
%{_libdir}/libvmtools.so
%changelog
* Wed Sep 30 2015 Ravindra Kumar <ravindrakumar@vmware.com> - 10.0.0-2
- Add -std=c++11 to CXXFLAGS for fixing the build issue,
https://kojipkgs.fedoraproject.org//work/tasks/3685/11273685/build.log
* Tue Sep 29 2015 Ravindra Kumar <ravindrakumar@vmware.com> - 10.0.0-1
- Package new upstream version open-vm-tools-10.0.0-3000743