编译glib-2.32.4

1、设置配置的变量
#echo ac_cv_type_long_long=yes>arm-linux.cache
#echo glib_cv_stack_grows=no>>arm-linux.cache
# echo glib_cv_uscore=no>>arm-linux.cache
# echo ac_cv_func_posix_getpwuid_r=yes>>arm-linux.cache
# echo ac_cv_func_posix_getgrgid_r=yes>>arm-linux.cache


2、配置configure:
# CC=所要用到的交叉编译器 ./configure --host=arm-linux --prefix=$ROOTFS_DIR/usr CC=arm-linux-gcc  --cache-file=arm-linux.cache


3、make && make install
# make && make install

你可能感兴趣的:(glib)