| 215 | Get [http://ftp.mozilla.org/pub/mozilla.org/mobile/source/android-ndk-r4c-0moz3.tar.bz2 android-ndk-r4c-0moz3]. |
| 216 | |
| 217 | Get js-1.8.5. |
| 218 | |
| 219 | Apply [http://wiki.apache.org/couchdb/AndroidMozillaPatch this patch] somehow. |
| 220 | |
| 221 | Add "#define FORCE_LITTLE_ENDIAN" at the top of jscpucfg.cpp. |
| 222 | |
| 223 | Now regenerate configure in the js dir: |
| 224 | |
| 225 | {{{ |
| 226 | cd js-1.8.5/js/src |
| 227 | autoconf2.13 |
| 228 | }}} |
| 229 | Then create a js directory, configure js, and build it: |
| 230 | |
| 231 | {{{ |
| 232 | cd $SYSROOT/usr/ |
| 233 | mkdir js |
| 234 | cd js |
| 235 | $TODO/js-1.8.5/js/src/configure \ |
| 236 | --target=arm-android-eabi \ |
| 237 | --with-android-ndk=$NDK \ |
| 238 | --with-android-sdk=$SDK \ |
| 239 | --with-endian=little \ |
| 240 | --with-arm-kuser \ |
| 241 | --disable-shared \ |
| 242 | --enable-static |
| 243 | make -s |
| 244 | }}} |
| 245 | |
| 246 | |
363 | | Get [http://ftp.mozilla.org/pub/mozilla.org/mobile/source/android-ndk-r4c-0moz3.tar.bz2 android-ndk-r4c-0moz3]. |
364 | | |
365 | | Get js-1.8.5. |
366 | | |
367 | | Apply [http://wiki.apache.org/couchdb/AndroidMozillaPatch this patch] somehow. |
368 | | |
369 | | Add "#define FORCE_LITTLE_ENDIAN" at the top of jscpucfg.cpp. |
370 | | |
371 | | Now regenerate configure in the js dir: |
372 | | |
373 | | {{{ |
374 | | cd js-1.8.5/js/src |
375 | | autoconf2.13 |
376 | | }}} |
377 | | Then create a js directory, configure js, and build it: |
378 | | |
379 | | {{{ |
380 | | cd $SYSROOT/usr/ |
381 | | mkdir js |
382 | | cd js |
383 | | $TODO/js-1.8.5/js/src/configure \ |
384 | | --target=arm-android-eabi \ |
385 | | --with-android-ndk=$NDK \ |
386 | | --with-android-sdk=$SDK \ |
387 | | --with-endian=little \ |
388 | | --with-arm-kuser \ |
389 | | --disable-shared \ |
390 | | --enable-static |
391 | | make -s |
392 | | }}} |