*-*-linux* | *-*-gnu*)
XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
;;
+
+ *-*-rtems*)
+ XCFLAGS="${XCFLAGS} -ftls-model=local-exec"
+ ;;
esac
fi
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"
+ ;;
+
+ *-*-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
+ ;;
+
*)
;;