diff --git a/bin/smartlink b/bin/smartlink index 86e29a1e02d7683169ee64decf53d86107eb7dec..a8f712c455bc61183027a54db868ed7020720518 100755 --- a/bin/smartlink +++ b/bin/smartlink @@ -17,6 +17,8 @@ export SGI_API #set -x +SET_N32="" + while test "$#" != 0; do case $1 in -R*) @@ -28,12 +30,17 @@ while test "$#" != 0; do fi RPATH="$RPATH:$tmp" ;; + -n32) + SET_N32="-n32" + ;; *) LDOPTS="$LDOPTS $1" esac shift done +LDOPTS="$SET_N32 $LDOPTS" + RPATH="$RPATH:${LD_LIBRARY_PATH-}" OLDIFS="$IFS"