actually update configure for ghc-configure-c99.patch

This commit is contained in:
Jens Petersen 2023-01-30 20:08:01 +08:00
parent c7637d9d11
commit 2a8e5b4268

View File

@ -169,6 +169,10 @@ BuildRequires: gcc-c++
# for terminfo # for terminfo
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
# needed for:
# - binary-dist-dir
# - patch11 and patch12
BuildRequires: autoconf automake
%if %{with testsuite} %if %{with testsuite}
BuildRequires: python3 BuildRequires: python3
%endif %endif
@ -185,8 +189,6 @@ BuildRequires: elfutils-devel
#BuildRequires: gnupg2 #BuildRequires: gnupg2
%endif %endif
%if %{with hadrian} %if %{with hadrian}
# needed for binary-dist-dir
BuildRequires: autoconf automake
%if %{with build_hadrian} %if %{with build_hadrian}
BuildRequires: ghc-Cabal-static BuildRequires: ghc-Cabal-static
BuildRequires: ghc-QuickCheck-static BuildRequires: ghc-QuickCheck-static
@ -207,11 +209,6 @@ BuildRequires: happy
%else %else
BuildRequires: %{name}-hadrian BuildRequires: %{name}-hadrian
%endif %endif
%else
%ifarch armv7hl
# patch12
BuildRequires: autoconf automake
%endif
%endif %endif
Requires: %{name}-compiler = %{version}-%{release} Requires: %{name}-compiler = %{version}-%{release}
Requires: %{name}-devel = %{version}-%{release} Requires: %{name}-devel = %{version}-%{release}
@ -501,10 +498,8 @@ EOF
%build %build
# for patch12 # for patch11
%ifarch armv7hl
autoreconf autoreconf
%endif
%ghc_set_gcc_flags %ghc_set_gcc_flags
export CC=%{_bindir}/gcc export CC=%{_bindir}/gcc