Eric Wong
2009-Dec-04 09:21 UTC
[Rev-talk] [PATCH (trivial)] build: use "install" for copying shared objects
Unlike "cp", "install" will unlink the destination before
copying the file over so an already running process can continue
using the previous extension (instead of segfaulting a running
process because a shared object is being overwritten).
---
I pushed this out to the "buildfix" branch on git://yhbt.net/rev
since
my master branch there has a commit for the timer_watcher spec still
awaiting a second set of eyes...
Rakefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Rakefile b/Rakefile
index 3229fb6..60fbb27 100644
--- a/Rakefile
+++ b/Rakefile
@@ -67,7 +67,7 @@ def setup_extension(dir, extension)
file ext_so => ext_files do
make "#{ext}"
- cp ext_so, "lib"
+ install ext_so, "lib"
end
end
--
Eric Wong