ltmain.sh
changeset 1 cf2af46e9e2a
parent 0 74212992fb08
child 387 469d5c0da01d
     1.1 --- a/ltmain.sh	Thu Apr 26 16:45:43 2001 +0000
     1.2 +++ b/ltmain.sh	Thu Apr 26 16:50:19 2001 +0000
     1.3 @@ -1079,7 +1079,18 @@
     1.4  	    # These systems don't actually have c library (as such)
     1.5  	    continue
     1.6  	    ;;
     1.7 +          *-*-openbsd*)
     1.8 +            # Do not include libc due to us having libc/libc_r.
     1.9 +            continue
    1.10 +            ;;
    1.11  	  esac
    1.12 +        elif test "$arg" = "-lc_r"; then
    1.13 +          case "$host" in
    1.14 +          *-*-openbsd*)
    1.15 +            # Do not include libc_r directly, use -pthread flag.
    1.16 +            continue
    1.17 +            ;;
    1.18 +          esac
    1.19  	elif test "$arg" = "-lm"; then
    1.20  	  case "$host" in
    1.21  	  *-*-cygwin* | *-*-beos*)
    1.22 @@ -1091,6 +1102,10 @@
    1.23  	deplibs="$deplibs $arg"
    1.24  	;;
    1.25  
    1.26 +      -?thread)
    1.27 +        deplibs="$deplibs $arg"
    1.28 +        ;;
    1.29 +
    1.30        -module)
    1.31  	module=yes
    1.32  	continue
    1.33 @@ -1799,6 +1814,9 @@
    1.34  	  # rhapsody is a little odd...
    1.35  	  deplibs="$deplibs -framework System"
    1.36  	  ;;
    1.37 +	*-*-openbsd*)
    1.38 +	  # do not include libc due to us having libc/libc_r.
    1.39 +	  ;;
    1.40  	*)
    1.41  	  # Add libc to deplibs on all other systems.
    1.42  	  deplibs="$deplibs -lc"