aboutsummaryrefslogtreecommitdiffstats
path: root/xcomp
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2013-08-23 17:58:55 +0200
committerLukas Larsson <[email protected]>2014-02-24 15:15:55 +0100
commit67c5954250d8a07e3b6ddb9851f33a16fd631a0f (patch)
treec040f5829ee184661778595bef415c0aadd42356 /xcomp
parent200fbe924466720bd2a8c5eb05b05d67b0a2414c (diff)
downloadotp-67c5954250d8a07e3b6ddb9851f33a16fd631a0f.tar.gz
otp-67c5954250d8a07e3b6ddb9851f33a16fd631a0f.tar.bz2
otp-67c5954250d8a07e3b6ddb9851f33a16fd631a0f.zip
ose: Use the swfp when compiling for OSE
The hwfp has been tested as well and seem to work, but most processors that OSE will run on does not have a fpu.
Diffstat (limited to 'xcomp')
-rw-r--r--xcomp/erl-xcomp-powerpc-ose5.conf8
1 files changed, 4 insertions, 4 deletions
diff --git a/xcomp/erl-xcomp-powerpc-ose5.conf b/xcomp/erl-xcomp-powerpc-ose5.conf
index f640c3f3fb..564f1df2a7 100644
--- a/xcomp/erl-xcomp-powerpc-ose5.conf
+++ b/xcomp/erl-xcomp-powerpc-ose5.conf
@@ -80,7 +80,7 @@ erl_xcomp_configure_flags="--disable-kernel-poll --disable-hipe --without-termca
CC="$GCCROOT/bin/$GCCTARGET-gcc"
# * `CFLAGS' - C compiler flags.
-CFLAGS="-g -fno-strict-aliasing -fno-builtin -fshort-wchar -Wall -Wno-unknown-pragmas -mpowerpc -nostdlib -I$GCCROOT/include/c++/$GCCVERSION -I$OSEROOT/include -I$OSEROOT/include/ose_spi -I$OSEROOT/include/gcc -MD -MP -D__OSE__ -DBIG_ENDIAN -DCF_CONF_SIZE=0x800 -O2"
+CFLAGS="-msoft-float -g -fno-strict-aliasing -fno-builtin -fshort-wchar -Wall -Wno-unknown-pragmas -mpowerpc -nostdlib -I$GCCROOT/include/c++/$GCCVERSION -I$OSEROOT/include -I$OSEROOT/include/ose_spi -I$OSEROOT/include/gcc -MD -MP -D__OSE__ -DBIG_ENDIAN -DCF_CONF_SIZE=0x800 -O2"
# * `STATIC_CFLAGS' - Static C compiler flags.
@@ -95,14 +95,14 @@ CFLAGS="-g -fno-strict-aliasing -fno-builtin -fshort-wchar -Wall -Wno-unknown-pr
CPP="$GCCROOT/bin/$GCCTARGET-cpp"
# * `CPPFLAGS' - C pre-processor flags.
-CPPFLAGS="-g -fno-strict-aliasing -fno-builtin -fshort-wchar -Wall -Wno-unknown-pragmas -mpowerpc -nostdlib -I$GCCROOT/include/c++/$GCCVERSION -I$OSEROOT/include -I$OSEROOT/include/ose_spi -I$OSEROOT/include/gcc -MD -MP -D__OSE__ -DBIG_ENDIAN -DCF_CONF_SIZE=0x800 -O2"
+CPPFLAGS="-msoft-float -g -fno-strict-aliasing -fno-builtin -fshort-wchar -Wall -Wno-unknown-pragmas -mpowerpc -nostdlib -I$GCCROOT/include/c++/$GCCVERSION -I$OSEROOT/include -I$OSEROOT/include/ose_spi -I$OSEROOT/include/gcc -MD -MP -D__OSE__ -DBIG_ENDIAN -DCF_CONF_SIZE=0x800 -O2"
# * `CXX' - C++ compiler.
CXX="$GCCROOT/bin/$GCCTARGET-g++"
# * `CXXFLAGS' - C++ compiler flags.
-CXXFLAGS="-g -fno-strict-aliasing -ansi -I$GCCROOT/include/c++/$GCCVERSION -I$OSEROOT/include -I$OSEROOT/include/gcc -O2"
+CXXFLAGS="-msoft-float -g -fno-strict-aliasing -ansi -I$GCCROOT/include/c++/$GCCVERSION -I$OSEROOT/include -I$OSEROOT/include/gcc -O2"
# * `LD' - Linker.
LD="${GCCROOT}/bin/${GCCTARGET}-ld"
@@ -111,7 +111,7 @@ LD="${GCCROOT}/bin/${GCCTARGET}-ld"
LDFLAGS="-Wl,-ecrt0_lm -Wl,-T,${ERL_TOP}/erts/emulator/sys/ose/gcc_lm_ppc.lcf"
# * `LIBS' - Libraries.
-LIBS="${OSEROOT}/lib/powerpc/libcrt.a ${OSEROOT}/lib/powerpc/libm.a ${GCCROOT}/lib/gcc/${GCCTARGET}/${GCCVERSION}/libgcc.a"
+LIBS="${OSEROOT}/lib/powerpc/libcrt.a ${OSEROOT}/lib/powerpc/libm.a ${GCCROOT}/lib/gcc/${GCCTARGET}/${GCCVERSION}/nof/libgcc.a"
## -- *D*ynamic *E*rlang *D*river Linking --