blob: 87420f9928299bd2f965648e41136c2371071cc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
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
|