diff options
Diffstat (limited to 'libffi/ghc.mk')
-rw-r--r-- | libffi/ghc.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libffi/ghc.mk b/libffi/ghc.mk index 07d6d3d74c..3cccee9c6a 100644 --- a/libffi/ghc.mk +++ b/libffi/ghc.mk @@ -35,8 +35,12 @@ libffi_STATIC_LIB = libffi/build/inst/lib/libffi.a libffi_HEADERS = rts/dist/build/ffi.h \ rts/dist/build/ffitarget.h -LIBFFI_WINDOWS_LIB = ffi-6 -LIBFFI_DLL = lib$(LIBFFI_WINDOWS_LIB).dll +ifeq "$(HostOS_CPP)" "mingw32" +LIBFFI_NAME = ffi-6 +else +LIBFFI_NAME = ffi +endif +LIBFFI_DLL = lib$(LIBFFI_NAME).dll ifeq "$(OSTYPE)" "cygwin" LIBFFI_PATH_MANGLE = PATH=$$(cygpath "$(TOP)")/libffi:$$PATH; export PATH; |