
#9620: libffi.a is put in the wrong folder -------------------------------------+------------------------------------- Reporter: rezb1t | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.1 Component: Build | Version: 7.9 System | Keywords: libffi lib64 Resolution: | Architecture: Unknown/Multiple Operating System: Linux | Difficulty: Unknown Type of failure: Building | Blocked By: GHC failed | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by rwbarton): dfeuer, could you try building with this patch? {{{ diff --git a/libffi/ghc.mk b/libffi/ghc.mk index bc62ad9..67dedf9 100644 --- a/libffi/ghc.mk +++ b/libffi/ghc.mk @@ -69,6 +69,11 @@ $(libffi_STAMP_CONFIGURE): $(TOUCH_DEP) mv libffi/build/Makefile.in libffi/build/Makefile.in.orig sed "s/-MD/-MMD/" < libffi/build/Makefile.in.orig > libffi/build/Makefile.in + # libffi does not properly respect libdir; force it to do so. + # (https://sourceware.org/ml/libffi-discuss/2014/msg00016.html) + mv libffi/build/Makefile.in libffi/build/Makefile.in.orig + sed 's:@toolexeclibdir@:$$(libdir):g' < libffi/build/Makefile.in.orig > libffi/build/Makefile.in + # Their cmd invocation only works on msys. On cygwin it starts # a cmd interactive shell. The replacement works in both environments. mv libffi/build/ltmain.sh libffi/build/ltmain.sh.orig }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9620#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler