Chris Herborth: the new compiler in R4.1 needs some new options to work...
This commit is contained in:
parent
e7de2061b4
commit
6b9da45969
|
@ -57,7 +57,10 @@ build_lib() {
|
|||
|
||||
case $BE_HOST_CPU in
|
||||
ppc)
|
||||
AR_CC="mwcc -xms -export pragma -nodup"
|
||||
case $(uname -r) in
|
||||
4.0*) AR_CC="mwcc -xms -export pragma -nodup" ;;
|
||||
*) AR_CC="mwcc -shared -export pragma -nodup" ;;
|
||||
esac
|
||||
GLUE_LOC=/boot/develop/lib/ppc
|
||||
AR_GLUE="${GLUE_LOC}/glue-noinit.a ${GLUE_LOC}/init_term_dyn.o ${GLUE_LOC}/start_dyn.o"
|
||||
;;
|
||||
|
|
|
@ -53,7 +53,10 @@ case $BE_HOST_CPU in
|
|||
# Boy, do we need a lot of crap...
|
||||
GLUE_LOC=/boot/develop/lib/ppc
|
||||
GLUE="${GLUE_LOC}/glue-noinit.a ${GLUE_LOC}/init_term_dyn.o"
|
||||
CC="mwcc -xms -export pragma -nodup"
|
||||
case $(uname -r) in
|
||||
4.0*) CC="mwcc -xms -export pragma -nodup" ;;
|
||||
*) CC="mwcc -shared -export pragma -nodup" ;;
|
||||
esac
|
||||
;;
|
||||
|
||||
x86)
|
||||
|
|
|
@ -120,7 +120,10 @@ AC_ARG_WITH(gcc, [--without-gcc never use gcc], [
|
|||
ppc)
|
||||
CC="mwcc -I$PWD/BeOS"
|
||||
without_gcc=yes
|
||||
OPT="-DUSE_DL_EXPORT -O7 -opt schedule604"
|
||||
case `uname -r` in
|
||||
4.0*) OPT="-DUSE_DL_EXPORT -O7 -opt schedule604 -export pragma" ;;
|
||||
*) OPT="-DUSE_DL_EXPORT -O2 -proc 604e -export pragma" ;;
|
||||
esac
|
||||
CCSHARED=-UUSE_DL_EXPORT
|
||||
LDFLAGS="$LDFLAGS -nodup"
|
||||
|
||||
|
|
Loading…
Reference in New Issue