#!/bin/sh
#*=====================================================================*/
#*    serrano/prgm/project/bigloo/autoconf/ldsharedopt                 */
#*    -------------------------------------------------------------    */
#*    Author      :  Manuel Serrano                                    */
#*    Creation    :  Mon Aug 10 09:05:45 1998                          */
#*    Last change :  Thu Mar 23 07:24:46 2000 (serrano)                */
#*    -------------------------------------------------------------    */
#*    This script setup the link option for dynamic linking.           */
#*    -------------------------------------------------------------    */
#*    This script need probably to be smarter. It more cases have to   */
#*    be added I will make something more general.                     */
#*=====================================================================*/

sys=`uname -s`
lib=$1

if [ "$sys" = "OSF" ]; then
   mach=`uname -m`
   case $mach in
      alpha)
         echo "-rpath $lib -expect_unresolved '*'";;
      *)
         echo "";;
   esac
else
   if [ "$sys" = "AIX" ]; then
      if [ "$cc" = "gcc" ]; then
         echo "-Xlinker -bbigtoc"
      else
         echo "-bbigtoc"
      fi
   else
      echo "";
   fi
fi
