Trying to use sreadahead tool on android target to decrease bootup time . But sreaahesd.c are not getting compiled against bionic library. Below is the error message---------
/tmp/ccIfKOOt.o: In function `one_thread': /home/zafar/spreadahead/sreadahead-1.0/sreadahead.c:177: undefined reference to `__sync_fetch_and_add_4' /tmp/ccIfKOOt.o: In function `readahead_one': /home/zafar/spreadahead/sreadahead-1.0/sreadahead.c:166: undefined reference to `readahead' /tmp/ccIfKOOt.o: In function `one_thread': /home/zafar/spreadahead/sreadahead-1.0/sreadahead.c:177: undefined reference to `__sync_fetch_and_add_4' collect2: ld returned 1 exit status make: *** [sreadahead] Error 1 Linux readahead system is not defined in android and __sync_fetch_and_add is X86 toolchain inbuilt memory access function. Any way to port these two APIs( Readahead and __sync_fetch_and_add) Any help will be highly appreciated Thank you -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
