+ifeq "$(Windows)" "YES"
+# Windows libtool creates <soname>.dll, and as we already patched that
+# there is no need to copy from libffi.dll to libHSffi...dll.
+# However, the renaming is still required for the import library
+# libffi.dll.a.
+$(HS_DYN_LIB_NAME).a: $(STAMP_BUILD)
+ $(CP) libffi.dll.a $(HS_DYN_LIB_NAME).a
+all :: $(HS_DYN_LIB_NAME).a
+
+else
+# Rename libffi.so to libHSffi...so