summaryrefslogtreecommitdiff
path: root/libffi/Makefile
diff options
context:
space:
mode:
authorClemens Fruhwirth <clemens@endorphin.org>2008-10-08 23:44:55 +0000
committerClemens Fruhwirth <clemens@endorphin.org>2008-10-08 23:44:55 +0000
commit8d6c5baccd43b06597af14a67629b166497116ab (patch)
tree91f233e75f43c46eaae3f5d0b7694efa8b02485d /libffi/Makefile
parentae1e5366aba0cdd5711a506a1629d8c73582a861 (diff)
downloadhaskell-8d6c5baccd43b06597af14a67629b166497116ab.tar.gz
Don't use sed's -i flag as Solaris doesn't know it in libffi/Makefile
Diffstat (limited to 'libffi/Makefile')
-rw-r--r--libffi/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/libffi/Makefile b/libffi/Makefile
index 073620e333..989325229f 100644
--- a/libffi/Makefile
+++ b/libffi/Makefile
@@ -108,7 +108,8 @@ stamp.ffi.configure:
# libffi.so needs to be built with the correct soname.
# NOTE: this builds libffi_convience.so with the incorrect
# soname, but we don't need that anyway!
- sed -i -e s/soname_spec=.*/soname_spec="$(HS_DYN_LIB_NAME)"/ build/libtool
+ $(CP) build/libtool build/libtool.orig
+ sed -e s/soname_spec=.*/soname_spec="$(HS_DYN_LIB_NAME)"/ build/libtool.orig > build/libtool
touch $@
ffi.h: stamp.ffi.configure
@@ -122,7 +123,7 @@ stamp.ffi.build: stamp.ffi.configure
$(STATIC_LIB) $(DYNAMIC_LIBS) $(DYNAMIC_PROG): stamp.ffi.build
libHSffi.a libHSffi_p.a: $(STATIC_LIB)
- cp $(STATIC_LIB) $@
+ $(CP) $(STATIC_LIB) $@
all :: libHSffi.a libHSffi_p.a
@@ -139,7 +140,7 @@ all :: HSffi.o
ifeq "$(BuildSharedLibs)" "YES"
$(HS_DYN_LIB_NAME): $(DYNAMIC_LIBS)
- cp $(word 1,$(DYNAMIC_LIBS)) $(HS_DYN_LIB_NAME)
+ $(CP) $(word 1,$(DYNAMIC_LIBS)) $(HS_DYN_LIB_NAME)
all :: $(HS_DYN_LIB_NAME)
endif