compilation - Cross-compiling ZSH statically -


i want cross-compile zsh arm (an android device) statically. want result bunch of binaries not require bunch of libs android not have. don't care size of binary. have compiled (statically) ncurses android , try compile zsh:

ttouch zsh$ cflags="-wl,-static -static-libgcc -l/media/files/lab/compilenv/ncurses-5.9/root/lib -lncurses" ./configure --host=arm-linux --disable-dynamic --disable-restricted-r --disable-gdbm --with-term-lib=ncurses --prefix=$(pwd)/root/ <everything ok> ttouch zsh$ make -j16 <everything ok> ttouch zsh$  readelf -d src/zsh | grep needed 0x00000001 (needed)                     shared library: [libncurses.so.5] 0x00000001 (needed)                     shared library: [librt.so.1] 0x00000001 (needed)                     shared library: [libm.so.6] 0x00000001 (needed)                     shared library: [libc.so.6] 0x00000001 (needed)                     shared library: [libgcc_s.so.1] 

so, how can compile zsh statically?


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -