diff options
author | Ian Lynagh <igloo@earth.li> | 2010-06-20 16:37:24 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2010-06-20 16:37:24 +0000 |
commit | cbc65cfae5ba78dc73ee2c5209bf6cd6dac0b574 (patch) | |
tree | 1d6da9d08f7a0c99c59dd5b4a81a4973678b0af5 /libffi | |
parent | 8555754b1683157cbf84f19a14e279fa0030dcfc (diff) | |
download | haskell-cbc65cfae5ba78dc73ee2c5209bf6cd6dac0b574.tar.gz |
Check files are really created in libffi
when we think that the libffi build creates them, so they just depend
on the libffi build stamp.
Diffstat (limited to 'libffi')
-rw-r--r-- | libffi/ghc.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libffi/ghc.mk b/libffi/ghc.mk index a8c72be12d..10e2ee3d6c 100644 --- a/libffi/ghc.mk +++ b/libffi/ghc.mk @@ -156,6 +156,8 @@ endif touch $@ $(libffi_STATIC_LIB): $(libffi_STAMP_BUILD) + [ -f $@ ] + # Rename libffi.a to libHSffi.a libffi/dist-install/build/libHSffi.a libffi/dist-install/build/libHSffi_p.a: $(libffi_STATIC_LIB) "$(CP)" $(libffi_STATIC_LIB) libffi/dist-install/build/libHSffi.a @@ -178,6 +180,8 @@ $(eval $(call all-target,libffi,libffi/dist-install/build/HSffi.o)) ifeq "$(BuildSharedLibs)" "YES" ifeq "$(Windows)" "YES" libffi/libffi.dll.a $(libffi_HS_DYN_LIB): $(libffi_STAMP_BUILD) + [ -f $@ ] + # 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 @@ -189,6 +193,8 @@ $(eval $(call all-target,libffi,$(libffi_HS_DYN_LIB).a)) else $(libffi_DYNAMIC_LIBS): $(libffi_STAMP_BUILD) + [ -f $@ ] + # Rename libffi.so to libHSffi...so $(libffi_HS_DYN_LIB): $(libffi_DYNAMIC_LIBS) | $$(dir $$@)/. "$(CP)" $(word 1,$(libffi_DYNAMIC_LIBS)) $(libffi_HS_DYN_LIB) |