Add -D_DEFAULT_SOURCE to suppress a warning
This commit is contained in:
parent
bef454ef99
commit
ac545d80bd
@ -27,7 +27,7 @@
|
||||
|
||||
Name: open-vm-tools
|
||||
Version: %{toolsversion}
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
Summary: Open Virtual Machine Tools for virtual machines hosted on VMware
|
||||
Group: Applications/System
|
||||
License: GPLv2
|
||||
@ -104,8 +104,10 @@ VMware virtual machines.
|
||||
%build
|
||||
# Use -Wno-unused-local-typedefs to build with GCC 4.8
|
||||
# Use -Wno-deprecated-declarations for version 9.4.0
|
||||
export CFLAGS="$RPM_OPT_FLAGS -Wno-unused-local-typedefs -Wno-deprecated-declarations"
|
||||
export CXXLAGS="$RPM_OPT_FLAGS -Wno-unused-local-typedefs -Wno-deprecated-declarations"
|
||||
# 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 -Wno-unused-local-typedefs -Wno-deprecated-declarations -D_DEFAULT_SOURCE"
|
||||
export CXXLAGS="$RPM_OPT_FLAGS -Wno-unused-local-typedefs -Wno-deprecated-declarations -D_DEFAULT_SOURCE"
|
||||
# Required for version 9.4.0
|
||||
export CUSTOM_PROCPS_NAME=procps
|
||||
%configure \
|
||||
@ -193,6 +195,10 @@ install -p -m 644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{toolsdaemon}.service
|
||||
%{_libdir}/libvmtools.so
|
||||
|
||||
%changelog
|
||||
* Tue Mar 25 2014 Ravindra Kumar <ravindrakumar@vmware.com> - 9.4.0-7
|
||||
- Add -D_DEFAULT_SOURCE to suppress warning as suggested in
|
||||
https://sourceware.org/bugzilla/show_bug.cgi?id=16632
|
||||
|
||||
* Fri Mar 21 2014 Ravindra Kumar <ravindrakumar@vmware.com> - 9.4.0-6
|
||||
- Add missing package dependencies (BZ#1045709, BZ#1077320)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user