https://bugzilla.redhat.com/show_bug.cgi?id=827167
--- Comment #9 from Gary Gatling gsgatlin@eos.ncsu.edu --- Thank you so much. This got me in the right direction. Through trial and error this seems to be the thing that works. If you leave out
%define __global_cflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables
It does
-fstack-protector and -fno-stack-protector in the same line which seems wrong. Also, this bug should affect older fedoras on 32 bit as well as rhel6.
Also, I had to use
%ifarch i686
becuase
%ifarch x86
did not work with my rhel6 build area.
So I went with the following:
%ifarch i686 %if 0%{?fedora} >=15 make %{?_smp_mflags} %else %define __global_cflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 %define nostack -fno-stack-protector make %{?_smp_mflags} CFLAGS="%{optflags} %{?nostack}" %endif %else make %{?_smp_mflags} %endif
Which seems to do the right thing on all platforms.
I am continuing to work on fixing the specfile and should have something to post soon.