准备移植freeswitch到arm平台上,主要是看好了freeswitch的良好的架构,很好的扩展性。对于后续业务的补充开发会有很大的便利。
一、创建一个cross.sh脚本,内容如下:
#!/bin/sh
#!/bin/sh
export PATH=/opt/crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu/bin:/bin:/sbin:/usr/bin:/usr/sbin;
export config_TARGET_CC="arm-softfloat-linux-gnu-gcc"; \
export config_BUILD_CC="gcc"; \
export config_TARGET_CFLAGS=; \
export config_TARGET_LIBS=; \
export CC_FOR_BUILD="gcc"; \
export CFLAGS_FOR_BUILD=" "; \
export ac_cv_file__dev_zero=no; \
export apr_cv_tcp_nodelay_with_cork=yes; \
export ac_cv_sizeof_ssize_t=4; \
export ac_cv_sizeof_size_t=4; \
export ac_cv_file_dbd_apr_dbd_mysql_c=no; \
export apr_cv_mutex_recursive=yes; \
export ac_cv_func_pthread_rwlock_init&