*-*-linux* | *-*-gnu*)
XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
;;
+
+ *-*-rtems*)
+ XCFLAGS="${XCFLAGS} -ftls-model=local-exec"
+ ;;
esac
fi
;;
*-*-aix*)
- config_path="aix posix"
+ config_path="posix"
+ # Need to link with -lpthread so libgomp.so is self-contained.
+ XLDFLAGS="${XLDFLAGS} -lpthread"
+ ;;
+
+ 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
;;
*)