Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/runlevel5/v8-ppc64le
A simple way to compile lib8 on Linux ppc64le
https://github.com/runlevel5/v8-ppc64le
libv8 linux ppc64le ruby
Last synced: about 2 months ago
JSON representation
A simple way to compile lib8 on Linux ppc64le
- Host: GitHub
- URL: https://github.com/runlevel5/v8-ppc64le
- Owner: runlevel5
- Created: 2020-03-08T10:32:46.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-22T14:47:42.000Z (9 months ago)
- Last Synced: 2024-10-13T17:51:42.614Z (3 months ago)
- Topics: libv8, linux, ppc64le, ruby
- Language: Dockerfile
- Size: 23.2 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The goal is to get those precious:
* `libv8_libbase.a`
* `libv8_libplatform.a`
* `libv8_monolith.a`which are needed to build rubyjs/libv8 rubygem
So, here is the steps:
1. You need a Linux ppc64le to play with
2. Clone this repo
3. Build the container image:```
$ podman build . --tag=libv8
```NOTE: you could use `docker` if you prefer
4. Run the container:
```
$ mkdir -p /tmp/v8
$ podman run -d -v /tmp/v8:/tmp/v8/out.gn/libv8 libv8
$ cp /tmp/v8/obj/*.a /destination # wherever you want them
```On related topic, if you want to build libv8 rubygem, please follow these steps:
```
$ git clone https://github.com/rubyjs/libv8.git
$ cd libv8
$ mkdir -p vendor/v8/out.gn/libv8/obj
$ cp /tmp/v8/obj/*.a vendor/v8/out.gn/libv8/obj/
$ mv /tmp/v8/include vendor/v8/
$ sed -i "s/VERSION.*/VERSION\ =\ \"7.3.495.0\"/g" lib/libv8/version.rb # update version to match the v8
$ sed -i "s/task\ :binary\ =>.*/task\ :binary\ do/g" Rakefile # skip the :compile step
$ bundle exec rake binary # the built gem is placed in pkg/libv8-7.3.495-powerpc64le-linux.gem
```