본문 바로가기

Life & Hobby/Linux

glib 2.x.x를 arm용으로 cross compile

vi를 열고 arm-linux.cache 를 생성


아래와 같은 내용을 적어넣는다. 


glib_cv_long_long_format=ll

glib_cv_stack_grows=no

glib_cv_has__inline=yes

glib_cv_has__inline__=yes

glib_cv_uscore=no

ac_cv_func_posix_getpwuid_r=yes

ac_cv_func_posix_getgrgid_r=yes

glib_cv_use_pid_surrogate=yes


./configure --prefix=$PREFIX --host=$HOST --build=$BUILD --cache-file=arm-linux.cache  실행을 하고 나서

make && make install 을 하면 성공적으로 cross comile 완료