#!/bin/sh
#*=====================================================================*/
#*    serrano/prgm/project/bigloo/autoconf/ldstaticopt                 */
#*    -------------------------------------------------------------    */
#*    Author      :  Manuel Serrano                                    */
#*    Creation    :  Mon Aug 10 09:05:45 1998                          */
#*    Last change :  Tue Jan 19 11:27:51 1999 (serrano)                */
#*    -------------------------------------------------------------    */
#*    This script setup the link option for static linking.            */
#*    -------------------------------------------------------------    */
#*    This script need probably to be smarter. It more cases have to   */
#*    be added I will make something more general.                     */
#*=====================================================================*/

sys=`uname -s`

if [ "$sys" = "Linux" ]; then
   mach=`uname -m`
   case $mach in
      i*86)
         echo "-Wl,-defsym,_DYNAMIC=0";;
      *)
         echo "";;
    esac
else
   if [ "$sys" = "AIX" ]; then
      if [ "$cc" = "gcc" ]; then
         echo "-Xlinker -bbigtoc"
      else
         echo "-bbigtoc"
      fi
   else
      echo "";
   fi
fi

