aports/community/ghc/0002-Correct-issue-with-libffi-and-glibc.patch
2017-05-17 13:50:14 +00:00

29 lines
985 B
Diff

From 843bd68ea83ba011d593ad7162d1df89c230004b Mon Sep 17 00:00:00 2001
From: Mitch Tishmack <mitch.tishmack@gmail.com>
Date: Sat, 15 Oct 2016 21:53:13 -0500
Subject: [PATCH 1/1] Correct issue with libffi and glibc
Ref: https://github.com/mitchty/alpine-linux-ghc-bootstrap/issues/16
Shamelessly learnt from here
https://github.com/nilcons/ghc-musl/blob/master/ghc-musl/Dockerfile#L24
---
libffi/ghc.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/libffi/ghc.mk b/libffi/ghc.mk
index 404cce9..2034873 100644
--- a/libffi/ghc.mk
+++ b/libffi/ghc.mk
@@ -61,6 +61,7 @@ $(libffi_STAMP_CONFIGURE): $(TOUCH_DEP)
# We have to fake a non-working ln for configure, so that the fallback
# option (cp -p) gets used instead. Otherwise the libffi build system
# will use cygwin symbolic links which cannot be read by mingw gcc.
+ sed -i s/__gnu_linux__/1/ libffi/build/src/closures.c
chmod +x libffi/ln
# We need to use -MMD rather than -MD, as otherwise we get paths
--
2.9.0