rudimentary fortran support

This commit is contained in:
Thomas Pöchtrager 2014-10-01 19:53:41 +02:00
parent 28436035a5
commit 06c8060aae
2 changed files with 14 additions and 4 deletions

View File

@ -40,7 +40,9 @@ That's it. See usage examples below.
##### Building GCC: ##### ##### Building GCC: #####
If you want to build GCC as well, then you can do this by running `./build_gcc.sh`. If you want to build GCC as well, then you can do this by running:
`[GCC_VERSION=4.9.1] [ENABLE_FORTRAN=1] ./build_gcc.sh`.
But before you do this, make sure you have got the GCC build depedencies installed on your system. But before you do this, make sure you have got the GCC build depedencies installed on your system.
On debian like systems you can run: On debian like systems you can run:

View File

@ -12,8 +12,10 @@ source tools/tools.sh
# GCC version to build # GCC version to build
# (<4.7 will not work properly with libc++) # (<4.7 will not work properly with libc++)
GCC_VERSION=4.9.1 if [ -z "$GCC_VERSION" ]; then
#GCC_VERSION=4.9-20140416 # snapshot GCC_VERSION=4.9.1
#GCC_VERSION=5-20140928 # snapshot
fi
# GCC mirror # GCC mirror
GCC_MIRROR="ftp://ftp.fu-berlin.de/unix/languages/gcc" GCC_MIRROR="ftp://ftp.fu-berlin.de/unix/languages/gcc"
@ -70,11 +72,17 @@ if [ "$PLATFORM" != "Darwin" ]; then
EXTRACONFFLAGS+="--with-as=$OSXCROSS_TARGET_DIR/bin/x86_64-apple-$OSXCROSS_TARGET-as " EXTRACONFFLAGS+="--with-as=$OSXCROSS_TARGET_DIR/bin/x86_64-apple-$OSXCROSS_TARGET-as "
fi fi
LANGS="c,c++,objc,obj-c++"
if [ -n "$ENABLE_FORTRAN" ]; then
LANGS+=",fortran"
fi
../configure \ ../configure \
--target=x86_64-apple-$OSXCROSS_TARGET \ --target=x86_64-apple-$OSXCROSS_TARGET \
--with-sysroot=$OSXCROSS_SDK \ --with-sysroot=$OSXCROSS_SDK \
--disable-nls \ --disable-nls \
--enable-languages=c,c++,objc,obj-c++ \ --enable-languages=$LANGS \
--without-headers \ --without-headers \
--enable-multilib \ --enable-multilib \
--with-multilib-list=m32,m64 \ --with-multilib-list=m32,m64 \