2 Star 0 Fork 0

mirrors_anthonyfok/MoSync-gcc3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
configure-linux.sh 2.28 KB
一键复制 编辑 原始数据 按行查看 历史
Fredrik Eldh 提交于 2011-02-27 15:06 . Fixes for 64-bit linux host.
#!/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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_anthonyfok/MoSync-gcc3.git
[email protected]:mirrors_anthonyfok/MoSync-gcc3.git
mirrors_anthonyfok
MoSync-gcc3
MoSync-gcc3
master

搜索帮助