ltmain.sh
changeset 1 cf2af46e9e2a
parent 0 74212992fb08
child 387 469d5c0da01d
equal deleted inserted replaced
0:74212992fb08 1:cf2af46e9e2a
  1077 	  case "$host" in
  1077 	  case "$host" in
  1078 	  *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos* |*-*-freebsd* )
  1078 	  *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos* |*-*-freebsd* )
  1079 	    # These systems don't actually have c library (as such)
  1079 	    # These systems don't actually have c library (as such)
  1080 	    continue
  1080 	    continue
  1081 	    ;;
  1081 	    ;;
       
  1082           *-*-openbsd*)
       
  1083             # Do not include libc due to us having libc/libc_r.
       
  1084             continue
       
  1085             ;;
  1082 	  esac
  1086 	  esac
       
  1087         elif test "$arg" = "-lc_r"; then
       
  1088           case "$host" in
       
  1089           *-*-openbsd*)
       
  1090             # Do not include libc_r directly, use -pthread flag.
       
  1091             continue
       
  1092             ;;
       
  1093           esac
  1083 	elif test "$arg" = "-lm"; then
  1094 	elif test "$arg" = "-lm"; then
  1084 	  case "$host" in
  1095 	  case "$host" in
  1085 	  *-*-cygwin* | *-*-beos*)
  1096 	  *-*-cygwin* | *-*-beos*)
  1086 	    # These systems don't actually have math library (as such)
  1097 	    # These systems don't actually have math library (as such)
  1087 	    continue
  1098 	    continue
  1088 	    ;;
  1099 	    ;;
  1089 	  esac
  1100 	  esac
  1090 	fi
  1101 	fi
  1091 	deplibs="$deplibs $arg"
  1102 	deplibs="$deplibs $arg"
  1092 	;;
  1103 	;;
       
  1104 
       
  1105       -?thread)
       
  1106         deplibs="$deplibs $arg"
       
  1107         ;;
  1093 
  1108 
  1094       -module)
  1109       -module)
  1095 	module=yes
  1110 	module=yes
  1096 	continue
  1111 	continue
  1097 	;;
  1112 	;;
  1796 	  # these systems don't actually have a c library (as such)!
  1811 	  # these systems don't actually have a c library (as such)!
  1797 	  ;;
  1812 	  ;;
  1798         *-*-rhapsody*)
  1813         *-*-rhapsody*)
  1799 	  # rhapsody is a little odd...
  1814 	  # rhapsody is a little odd...
  1800 	  deplibs="$deplibs -framework System"
  1815 	  deplibs="$deplibs -framework System"
       
  1816 	  ;;
       
  1817 	*-*-openbsd*)
       
  1818 	  # do not include libc due to us having libc/libc_r.
  1801 	  ;;
  1819 	  ;;
  1802 	*)
  1820 	*)
  1803 	  # Add libc to deplibs on all other systems.
  1821 	  # Add libc to deplibs on all other systems.
  1804 	  deplibs="$deplibs -lc"
  1822 	  deplibs="$deplibs -lc"
  1805 	  ;;
  1823 	  ;;