From e88a39de2705e939db23ca6e32432ff7e776c43f Mon Sep 17 00:00:00 2001
From: Julian Ospald <hasufell@posteo.de>
Date: Mon, 27 Apr 2020 16:23:44 +0200
Subject: [PATCH] Fix release builds

---
 .gitlab-ci.yml                  | 2 +-
 .gitlab/script/ghcup_release.sh | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3ba208ee..3a365294 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -161,7 +161,7 @@ release:linux:32bit:
   before_script:
     - ./.gitlab/before_script/linux/alpine/install_deps.sh
   variables:
-    ARTIFACT: "x86_64-linux-ghcup"
+    ARTIFACT: "i386-linux-ghcup"
     GHC_VERSION: "8.8.3"
     CABAL_VERSION: "3.2.0.0"
 
diff --git a/.gitlab/script/ghcup_release.sh b/.gitlab/script/ghcup_release.sh
index f8728fca..63235d9a 100755
--- a/.gitlab/script/ghcup_release.sh
+++ b/.gitlab/script/ghcup_release.sh
@@ -15,6 +15,8 @@ ecabal update
 
 if [ "${OS}" = "LINUX" ] ; then
 	ecabal build -w ghc-${GHC_VERSION} -fcurl --ghc-options='-split-sections -optl-static'
+elif [ "${OS}" = "FREEBSD" ] ; then
+	ecabal build -w ghc-${GHC_VERSION} -fcurl --ghc-options='-split-sections'
 else
 	ecabal build -w ghc-${GHC_VERSION} -fcurl
 fi
-- 
GitLab