Skip to content

Commit 78ede7d

Browse files
committed
Compile V8 with soname so multiple versions can coexist
1 parent a972fce commit 78ede7d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: src/React.JavaScriptEngine.VroomJs/readme.txt

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ git checkout 3.17
99

1010
# Build V8
1111
make dependencies
12-
make werror=no library=shared x64.release
12+
make native werror=no library=shared soname_version=3.17.16.2 -j4
13+
cp out/native/lib.target/libv8.so.3.17.16.2 /usr/local/lib/
1314

1415
# Get ReactJS.NET's version of libvroomjs
1516
cd /usr/local/src/
@@ -19,12 +20,12 @@ git submodule update --init
1920
cd lib/VroomJs/libvroomjs/
2021

2122
# Build libvroomjs
22-
g++ jscontext.cpp jsengine.cpp managedref.cpp bridge.cpp jsscript.cpp -o libVroomJsNative.so -shared -L /usr/local/src/v8/out/x64.release/lib.target/ -I /usr/local/src/v8/include/ -fPIC -Wl,--no-as-needed -lv8
23+
g++ jscontext.cpp jsengine.cpp managedref.cpp bridge.cpp jsscript.cpp -o libVroomJsNative.so -shared -L /usr/local/src/v8/out/x64.release/lib.target/ -I /usr/local/src/v8/include/ -fPIC -Wl,--no-as-needed -l:/usr/local/lib/libv8.so.3.17.16.2
2324
cp libVroomJsNative.so /usr/local/lib/
2425
ldconfig
2526

2627
If VroomJs fails to load, run Mono with the `MONO_LOG_LEVEL=debug` environment variable to get
2728
more useful debugging information. Often, this occurs when Mono is unable to locate V8 (ie. it's
2829
not in /usr/lib/ or /usr/local/lib/)
2930

30-
For more information, please see the ReactJS.NET website at http://reactjs.net/
31+
For more information, please see the ReactJS.NET website at http://reactjs.net/

0 commit comments

Comments
 (0)