disable warning deprecated-declarations which will raise error because of -Werror
(this is because of 'g_static_mutex_init' usage which is now deprecated) OBS-URL: https://build.opensuse.org/package/show/Virtualization:VMware/open-vm-tools?expand=0&rev=214
This commit is contained in:
parent
d7fa98b44f
commit
717a8097c6
@ -163,8 +163,10 @@ sed -i -e "s/\r//" README
|
||||
|
||||
%build
|
||||
# disable warning unused-but-set-variable which will raise error because of -Werror
|
||||
export CFLAGS="%{optflags} -Wno-unused-but-set-variable -fPIE"
|
||||
export CPPFLAGS="%{optflags} -Wno-unused-but-set-variable -fPIE"
|
||||
# disable warning deprecated-declarations which will raise error because of -Werror
|
||||
# (this is because of 'g_static_mutex_init' usage which is now deprecated)
|
||||
export CFLAGS="%{optflags} -Wno-unused-but-set-variable -Wno-deprecated-declarations -fPIE"
|
||||
export CPPFLAGS="%{optflags} -Wno-unused-but-set-variable -Wno-deprecated-declarations -fPIE"
|
||||
export LDFLAGS="-pie"
|
||||
# comments in a continued line seem not to work... shame
|
||||
# --disable-unity : liburiparser was not present before 11.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user