Skip to content

Commit

Permalink
Merge branch 'master' into oldJSC
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielZlotin committed Nov 15, 2018
2 parents 047518b + b7ec706 commit 2aacde7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,21 @@ To use this variant instead replace the third installation step with:

See **[Measurements](/measure)** page that contains synthetic perf test results for the most notable versions of JSC we have tried.

## Troubleshooting

Compile errors of the sort:
```shell
More than one file was found with OS independent path 'lib/armeabi-v7a/libgnustl_shared.so'
```

Add the following to your `app/build.gradle`, under `android`:

```groovy
packagingOptions {
pickFirst '**/libgnustl_shared.so'
}
```

## Resources
- [WebkitGTK Sources](https://svn.webkit.org/repository/webkit/releases/WebKitGTK/)
- [ICU Sources](https://android.googlesource.com/platform/external/icu/)
Expand Down
2 changes: 2 additions & 0 deletions scripts/compile/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ COMMON_LDFLAGS=" \
-Wl,--icf=safe \
-Wl,-z,noexecstack \
-Wl,--gc-sections \
-Wl,--exclude-libs,libgcc.a \
-Wl,--exclude-libs,libunwind.a \
"

COMMON_CFLAGS=" \
Expand Down
11 changes: 10 additions & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,16 @@ patchAndMakeICU() {
rm -rf $TARGETDIR/icu/host
mkdir -p $TARGETDIR/icu/host
cd $TARGETDIR/icu/host
$TARGETDIR/icu/source/runConfigureICU Linux --prefix=$PWD/prebuilts CFLAGS="-Os" CXXFLAGS="--std=c++11" --disable-tests --disable-samples

$TARGETDIR/icu/source/runConfigureICU Linux \
--prefix=$PWD/prebuilts \
CFLAGS="-Os" \
CXXFLAGS="--std=c++11" \
--disable-tests \
--disable-samples \
--disable-layout \
--disable-layoutex

make -j5
cd $ROOTDIR

Expand Down

0 comments on commit 2aacde7

Please sign in to comment.