Chris Herborth: the new compiler in R4.1 needs some new options to work...
diff --git a/BeOS/ar-fake b/BeOS/ar-fake
index 687a9b5..b4f5996 100755
--- a/BeOS/ar-fake
+++ b/BeOS/ar-fake
@@ -57,7 +57,10 @@
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"
;;
diff --git a/BeOS/linkmodule b/BeOS/linkmodule
index 575f2bd..103882a 100755
--- a/BeOS/linkmodule
+++ b/BeOS/linkmodule
@@ -53,7 +53,10 @@
# 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)