This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: generic threads support
- From: Joern RENNECKE <joern dot rennecke at st dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 03 Apr 2006 14:58:42 +0100
- Subject: Re: RFA: generic threads support
- References: <442453E3.4000709@st.com> <442DC121.4030405@codesourcery.com>
Mark Mitchell wrote:
+AC_SUBST(extra_libgcc_static_srcs)
I didn't see anything that sets this variable. Where is that?
It's this configure.ac hunk:
@@ -1373,6 +1373,14 @@ if test $thread_file != single; then
rm -f gthr-default.h
echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
gthread_flags=-DHAVE_GTHR_DEFAULT
+ if test $thread_file != posix; then
+ if test -f $srcdir/gthr-${thread_file}.c; then
+ extra_libgcc_srcs=$srcdir/gthr-${thread_file}.c
+ fi
+ if test -f $srcdir/gthr-objc-${thread_file}.c; then
+ extra_libgcc_srcs="${extra_libgcc_srcs}
$srcdir/gthr-objc-${thread_file}.
c"
+ fi
+ fi
fi
AC_SUBST(gthread_flags)