Skip to content

Commit

Permalink
libstdc++ must use thread-local errno
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus-it committed Jun 2, 2023
1 parent 02f19a7 commit 7d6780d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libstdc++-v3/configure
Original file line number Diff line number Diff line change
Expand Up @@ -72125,6 +72125,12 @@ done
tmake_file="${tmake_file_}"


case "${target}" in *-*-solaris2*)
EXTRA_CFLAGS="$EXTRA_CFLAGS -D_TS_ERRNO"
EXTRA_CXX_FLAGS="$EXTRA_CXX_FLAGS -D_TS_ERRNO"
esac


# Add CET specific flags if Intel CET is enabled.
# Check whether --enable-cet was given.
if test "${enable_cet+set}" = set; then :
Expand Down
5 changes: 5 additions & 0 deletions libstdc++-v3/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,11 @@ done
tmake_file="${tmake_file_}"
AC_SUBST(tmake_file)

case "${target}" in *-*-solaris2*)
EXTRA_CFLAGS="$EXTRA_CFLAGS -D_TS_ERRNO"
EXTRA_CXX_FLAGS="$EXTRA_CXX_FLAGS -D_TS_ERRNO"
esac

# Add CET specific flags if Intel CET is enabled.
GCC_CET_FLAGS(CET_FLAGS)
EXTRA_CXX_FLAGS="$EXTRA_CXX_FLAGS $CET_FLAGS"
Expand Down

0 comments on commit 7d6780d

Please sign in to comment.