summaryrefslogtreecommitdiffstats
path: root/BeOS/linkmodule
diff options
context:
space:
mode:
Diffstat (limited to 'BeOS/linkmodule')
-rwxr-xr-xBeOS/linkmodule5
1 files changed, 4 insertions, 1 deletions
diff --git a/BeOS/linkmodule b/BeOS/linkmodule
index 575f2bd..103882a 100755
--- a/BeOS/linkmodule
+++ b/BeOS/linkmodule
@@ -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)