summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ghc-bootstrap-binary.spec7
1 files changed, 3 insertions, 4 deletions
diff --git a/ghc-bootstrap-binary.spec b/ghc-bootstrap-binary.spec
index 50fb02a..cfc627d 100644
--- a/ghc-bootstrap-binary.spec
+++ b/ghc-bootstrap-binary.spec
@@ -69,16 +69,14 @@ cp %{SOURCE4} .
%define sysname unknown
%endif
+tar Jxf ghc-%{ghc_ver}-%{longarch}-%{sysname}-linux.tar.xz
tar xf alex-%{alex_ver}.tar.gz
tar xf happy-%{happy_ver}.tar.gz
-tar Jxf ghc-%{ghc_ver}-%{longarch}-%{sysname}-linux.tar.xz
%build
-cd ghc-%{ghc_ver}-%{longarch}-%{sysname}-linux
%install
-cd ghc-%{ghc_ver}-%{longarch}-%{sysname}-linux
-
+pushd ghc-%{ghc_ver}-%{longarch}-%{sysname}-linux
./configure --prefix=/opt
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
echo "/opt/lib/ghc-%{ghc_ver}/lib/%{arch}-linux-ghc-%{ghc_ver}" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/ghc.conf
@@ -93,6 +91,7 @@ for i in *.conf; do
mv $i.copy $i
done
)
+popd
cd ..
export PATH=/opt/bin:$PATH