1216 |
# These systems don't actually have a C library (as such) |
# These systems don't actually have a C library (as such) |
1217 |
test "X$arg" = "X-lc" && continue |
test "X$arg" = "X-lc" && continue |
1218 |
;; |
;; |
1219 |
|
*-*-openbsd*) |
1220 |
|
# OpenBSD uses either libc or libc_r. |
1221 |
|
continue |
1222 |
|
;; |
1223 |
*-*-rhapsody* | *-*-darwin1.[012]) |
*-*-rhapsody* | *-*-darwin1.[012]) |
1224 |
# Rhapsody C and math libraries are in the System framework |
# Rhapsody C and math libraries are in the System framework |
1225 |
deplibs="$deplibs -framework System" |
deplibs="$deplibs -framework System" |
1226 |
continue |
continue |
1227 |
esac |
esac |
1228 |
fi |
fi |
1229 |
|
if test "X$arg" = "X-lc_r"; then |
1230 |
|
case $host in |
1231 |
|
*-*-openbsd*) |
1232 |
|
# Do not include libc_r directly, use -pthread flag. |
1233 |
|
continue |
1234 |
|
;; |
1235 |
|
esac |
1236 |
|
fi |
1237 |
deplibs="$deplibs $arg" |
deplibs="$deplibs $arg" |
1238 |
continue |
continue |
1239 |
;; |
;; |
2809 |
*-*-netbsd*) |
*-*-netbsd*) |
2810 |
# Don't link with libc until the a.out ld.so is fixed. |
# Don't link with libc until the a.out ld.so is fixed. |
2811 |
;; |
;; |
2812 |
*) |
*-*-openbsd*) |
2813 |
|
# OpenBSD uses either libc or libc_r. |
2814 |
|
;; |
2815 |
|
*) |
2816 |
# Add libc to deplibs on all other systems if necessary. |
# Add libc to deplibs on all other systems if necessary. |
2817 |
if test $build_libtool_need_lc = "yes"; then |
if test $build_libtool_need_lc = "yes"; then |
2818 |
deplibs="$deplibs -lc" |
deplibs="$deplibs -lc" |