*-*-k*bsd*-gnu*)
;;
+ *-*-musl*)
+ ;;
+
*-*-linux* | *-*-gnu*)
- XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
+ XCFLAGS="${XCFLAGS} -ftls-model=initial-exec -DUSING_INITIAL_EXEC_TLS"
+ ;;
+
+ *-*-rtems*)
+ XCFLAGS="${XCFLAGS} -ftls-model=local-exec"
;;
esac
fi
config_path="posix"
# Check for futex enabled all at once.
-if test $enable_linux_futex = yes; then
+if test x$enable_linux_futex = xyes; then
case "${target}" in
aarch64*-*-linux*)
case "${target}" in
*-*-hpux*)
+ config_path="hpux posix"
case "${target}" in
*-*-hpux11*)
# HPUX v11.x requires -lrt to resolve sem_init in libgomp.la
;;
*-*-darwin*)
- config_path="bsd posix"
+ config_path="bsd darwin posix"
;;
*-*-freebsd*)
XLDFLAGS="${XLDFLAGS} -lpthread"
;;
+ *-*-aix*)
+ config_path="posix"
+ # Need to link with -lpthread so libgomp.so is self-contained.
+ XLDFLAGS="${XLDFLAGS} -lpthread"
+ # AIX needs -frandom-seed for bootstrap compare.
+ XCFLAGS="${XCFLAGS} -frandom-seed=\$@"
+ ;;
+
+ nvptx*-*-*)
+ config_path="nvptx accel"
+ ;;
+
+ *-*-rtems*)
+ # Use self-contained synchronization objects if provided by Newlib
+ if test "x$ac_cv_type_struct__Mutex_Control" = xyes ; then
+ config_path="rtems posix"
+ fi
+ ;;
+
+ amdgcn*-*-*)
+ config_path="gcn accel"
+ ;;
+
*)
;;