代码拉取完成,页面将自动刷新
#!/bin/sh
#---------------------------------------------------------------------------------
# Source and Install directories
#---------------------------------------------------------------------------------
SRCDIR=$PWD/gcc-3.4.6 # the sourcecode dir for gcc
# This must be specified in the format shown here
# as one of the tools built during the process will fail
# if absolute paths are specified
# the example here assumes that the gcc source directory
# is at the same level as the script
prefix=/usr/mosync # installation directory
# This must be specified in the format shown here
# or gcc won't be able to find it's libraries and includes
# if you move the installation
builddir=./build/gcc
#---------------------------------------------------------------------------------
# set the path for the installed binutils
#---------------------------------------------------------------------------------
#export PATH=${PATH}:/c/cross-gcc/mosync/bin
#---------------------------------------------------------------------------------
# set the target and compiler flags
#---------------------------------------------------------------------------------
target=mapip
progpref=mapip-
export CFLAGS='-O2 -pipe -m32'
export CXXFLAGS='-O2 -pipe -m32'
export LDFLAGS='-s -m32'
export DEBUG_FLAGS=''
#---------------------------------------------------------------------------------
# build and install just the c compiler
#---------------------------------------------------------------------------------
mkdir -p $builddir
cd $builddir
$SRCDIR/configure \
--enable-languages=c,c++ \
--with-gcc --with-stabs \
--disable-shared --disable-threads --disable-win32-registry --disable-nls \
--prefix=$prefix \
--target=$target \
--without-headers \
--program-prefix=$progpref -v \
--build=i686-linux-gnu \
--host=i686-linux-gnu \
2>&1 | tee gcc_configure.log
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。