Skip to content
Browse files

GCC: Added script for building under darwin.

git-svn-id: svn://localhost/public/gcc/trunk@1443 6ad7a17e-d552-4a1e-ace4-f958fe14b117
  • Loading branch information...
1 parent c5176eb commit a0bc339617c29b2add5f34e85005c5663725607e romain committed Jun 10, 2010
Showing with 54 additions and 0 deletions.
  1. +54 −0 configure-darwin.sh
View
54 configure-darwin.sh
@@ -0,0 +1,54 @@
+#!/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'
+export LDFLAGS='-s'
+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 \
+ 2>&1 | tee gcc_configure.log

0 comments on commit a0bc339

Please sign in to comment.
Something went wrong with that request. Please try again.