File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -20,21 +20,27 @@ cp version.h version.h.pristine
20
20
try autoconf
21
21
try ./configure --prefix=/data/ruby --disable-install-doc
22
22
try make -j 4
23
-
24
23
try make install
25
24
25
+ # wait to touch version.h last modified timestamp (1 sec resolution),
26
+ # so make recognizes the change and rebuilds
27
+ sleep 1
28
+ cp version.h.pristine version.h
29
+ perl -pi -e ' s/-github/-github-libcmalloc/' version.h
30
+ try make ruby-libcmalloc RUBY_INSTALL_NAME=ruby-libcmalloc
31
+ cp ruby-libcmalloc /data/ruby/bin
32
+
26
33
sleep 1
27
34
cp version.h.pristine version.h
28
35
perl -pi -e " s/-github/-github-tcmalloc/" version.h
29
36
try make ruby-tcmalloc RUBY_INSTALL_NAME=ruby-tcmalloc MAINLIBS=-ltcmalloc
37
+ cp ruby-tcmalloc /data/ruby/bin
38
+ cp -p ruby-tcmalloc /data/ruby/bin/ruby
30
39
31
40
sleep 1
32
41
cp version.h.pristine version.h
33
42
perl -pi -e " s/-github/-github-jemalloc/" version.h
34
43
try make ruby-jemalloc RUBY_INSTALL_NAME=ruby-jemalloc MAINLIBS=-ljemalloc
35
-
36
- cp ruby-tcmalloc /data/ruby/bin
37
- cp -p ruby-tcmalloc /data/ruby/bin/ruby
38
44
cp ruby-jemalloc /data/ruby/bin
39
45
40
46
export PATH=/data/ruby/bin:$PATH
You can’t perform that action at this time.
0 commit comments