mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
rudimentary fortran support
This commit is contained in:
parent
28436035a5
commit
06c8060aae
@ -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:
|
||||||
|
12
build_gcc.sh
12
build_gcc.sh
@ -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++)
|
||||||
|
if [ -z "$GCC_VERSION" ]; then
|
||||||
GCC_VERSION=4.9.1
|
GCC_VERSION=4.9.1
|
||||||
#GCC_VERSION=4.9-20140416 # snapshot
|
#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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user