[commit: ghc] master: Rename the FFI DLL to libffi.dll for consistency (9a14de4)

Ian Lynagh igloo at earth.li
Sat Apr 6 21:37:04 CEST 2013


Repository : http://darcs.haskell.org/ghc.git/

On branch  : master

https://github.com/ghc/ghc/commit/9a14de48d6e87e9a96040100bccdf14dd79ca13a

>---------------------------------------------------------------

commit 9a14de48d6e87e9a96040100bccdf14dd79ca13a
Author: Ian Lynagh <igloo at earth.li>
Date:   Sat Apr 6 16:45:36 2013 +0100

    Rename the FFI DLL to libffi.dll for consistency

>---------------------------------------------------------------

 rts/ghc.mk | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/rts/ghc.mk b/rts/ghc.mk
index 4452add..b7651b0 100644
--- a/rts/ghc.mk
+++ b/rts/ghc.mk
@@ -104,13 +104,15 @@ endif
 
 ifneq "$(BINDIST)" "YES"
 ifneq "$(UseSystemLibFFI)" "YES"
+ifeq "$(HostOS_CPP)" "mingw32" 
+rts/dist/build/libffi.dll: libffi/build/inst/bin/$(LIBFFI_DLL)
+	cp $< $@
+else
 # This is a little hacky. We don't know the SO version, so we only
 # depend on libffi.so, but copy libffi.so*
 rts/dist/build/libffi$(soext): libffi/build/inst/lib/libffi$(soext)
 	cp libffi/build/inst/lib/libffi$(soext)* rts/dist/build
-
-rts/dist/build/$(LIBFFI_DLL): libffi/build/inst/bin/$(LIBFFI_DLL)
-	cp $< $@
+endif
 endif
 endif
 
@@ -176,10 +178,10 @@ endif
 # Making a shared library for the RTS.
 ifneq "$$(findstring dyn, $1)" ""
 ifeq "$$(HostOS_CPP)" "mingw32" 
-$$(rts_$1_LIB) : $$(rts_$1_OBJS) $$(ALL_RTS_DEF_LIBS) rts/libs.depend rts/dist/build/$$(LIBFFI_DLL)
+$$(rts_$1_LIB) : $$(rts_$1_OBJS) $$(ALL_RTS_DEF_LIBS) rts/libs.depend rts/dist/build/libffi.dll
 	"$$(RM)" $$(RM_OPTS) $$@
 	"$$(rts_dist_HC)" -package-name rts -shared -dynamic -dynload deploy \
-	  -no-auto-link-packages -Lrts/dist/build -l$(LIBFFI_WINDOWS_LIB) `cat rts/libs.depend` $$(rts_$1_OBJS) $$(ALL_RTS_DEF_LIBS) -o $$@
+	  -no-auto-link-packages -Lrts/dist/build -lffi `cat rts/libs.depend` $$(rts_$1_OBJS) $$(ALL_RTS_DEF_LIBS) -o $$@
 else
 ifneq "$$(UseSystemLibFFI)" "YES"
 LIBFFI_LIBS = -Lrts/dist/build -lffi 





More information about the ghc-commits mailing list