be less strict with the workaround
This commit is contained in:
parent
9ba6e190ee
commit
a304e9b4df
@ -309,7 +309,7 @@ rm -rf mcs/class/lib/monolite/*
|
||||
# workaround a gcc bug - https://bugzilla.redhat.com/show_bug.cgi?id=1397948
|
||||
RPM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | sed -e 's/-march=z[[:alnum:]]\+/-march=z9-109/g' -e 's/-mtune=z[[:alnum:]]\+/-mtune=z10/g')
|
||||
# so either mono C code relies on undefined behaviour or gcc is even more broken than earlier
|
||||
RPM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | sed -e 's/-O2 /-O0 /g')
|
||||
RPM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | sed -e 's/-O2 /-O1 /g')
|
||||
%endif
|
||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user