summaryrefslogtreecommitdiff
path: root/libffi
diff options
context:
space:
mode:
authorClemens Fruhwirth <clemens@endorphin.org>2008-10-08 23:29:02 +0000
committerClemens Fruhwirth <clemens@endorphin.org>2008-10-08 23:29:02 +0000
commitae1e5366aba0cdd5711a506a1629d8c73582a861 (patch)
tree62bb83867b309b5e974c7ac1f4c937833ec7e2c2 /libffi
parent960b35ddc178f6b8af1a8809aecb0a43177abbc8 (diff)
downloadhaskell-ae1e5366aba0cdd5711a506a1629d8c73582a861.tar.gz
Don't use /dev/null trick to create empty object files in libffi/Makefile
Diffstat (limited to 'libffi')
-rw-r--r--libffi/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/libffi/Makefile b/libffi/Makefile
index a85372dea6..073620e333 100644
--- a/libffi/Makefile
+++ b/libffi/Makefile
@@ -132,10 +132,8 @@ all :: libHSffi.a libHSffi_p.a
# compiler/ghci/Linker.lhs:emptyPLS) we generate an empty HSffi.o
HSffi.o: libHSffi.a
- ld -r -o HSffi.o /dev/null # this is intentional
-# $(RM) -fr unpack
-# (mkdir unpack; cd unpack; ar x ../libHSffi.a; ld -r -o ../HSffi.o *.o)
-# $(RM) -fr unpack
+ touch empty.c
+ $(CC) -c empty.c -o HSffi.o
all :: HSffi.o
@@ -147,7 +145,7 @@ all :: $(HS_DYN_LIB_NAME)
endif
clean distclean maintainer-clean ::
- $(RM) -f stamp.ffi.configure stamp.ffi.build ffi.h
+ $(RM) -f stamp.ffi.configure stamp.ffi.build ffi.h empty.c
$(RM) -f libffi.a libffi.la $(DYNAMIC_PROG) $(DYNAMIC_LIBS) $(ORIG_DYNAMIC_LIBS)
$(RM) -rf build