Correct wrong CFLAGS

epel9
Robert Scheck 10 years ago
parent 194d96c4ef
commit 34e6ed30fe

@ -56,13 +56,15 @@ popd
%build %build
pushd gnu pushd gnu
%if 0%{?rhel} <= 6 %if 0%{?rhel}
# Workaround for "Patch not found" (https://gnats.netbsd.org/36919) %if 0%{?rhel} <= 6
export CFLAGS="$CFLAGS -fno-unit-at-a-time" # Workaround for "Patch not found" (https://gnats.netbsd.org/36919)
%endif export CFLAGS="$RPM_OPT_FLAGS -fno-unit-at-a-time"
%if 0%{?rhel} == 6 %endif
# Workaround for "machine `x86_64-redhat' not recognized" from config.sub %if 0%{?rhel} == 6
cp -pf /usr/lib/rpm/redhat/config.{guess,sub} . # Workaround for "machine `x86_64-redhat' not recognized" from config.sub
cp -pf /usr/lib/rpm/redhat/config.{guess,sub} .
%endif
%endif %endif
%configure %configure
popd popd

Loading…
Cancel
Save