Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
ed4ebabc
Commit
ed4ebabc
authored
Jan 14, 2011
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libgo: Check whether we need -lrt for sched_yield.
From Rainer Orth. From-SVN: r168816
parent
3ad3790d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
0 deletions
+60
-0
libgo/configure
+57
-0
libgo/configure.ac
+3
-0
No files found.
libgo/configure
View file @
ed4ebabc
...
...
@@ -13635,6 +13635,63 @@ fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for library containing sched_yield"
>
&5
$as_echo_n
"checking for library containing sched_yield... "
>
&6
;
}
if
test
"
${
ac_cv_search_sched_yield
+set
}
"
=
set
;
then
:
$as_echo_n
"(cached) "
>
&6
else
ac_func_search_save_LIBS
=
$LIBS
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char sched_yield ();
int
main ()
{
return sched_yield ();
;
return 0;
}
_ACEOF
for
ac_lib
in
''
rt
;
do
if
test
-z
"
$ac_lib
"
;
then
ac_res
=
"none required"
else
ac_res
=
-l
$ac_lib
LIBS
=
"-l
$ac_lib
$ac_func_search_save_LIBS
"
fi
if
ac_fn_c_try_link
"
$LINENO
"
;
then
:
ac_cv_search_sched_yield
=
$ac_res
fi
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
if
test
"
${
ac_cv_search_sched_yield
+set
}
"
=
set
;
then
:
break
fi
done
if
test
"
${
ac_cv_search_sched_yield
+set
}
"
=
set
;
then
:
else
ac_cv_search_sched_yield
=
no
fi
rm conftest.
$ac_ext
LIBS
=
$ac_func_search_save_LIBS
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_search_sched_yield
"
>
&5
$as_echo
"
$ac_cv_search_sched_yield
"
>
&6
;
}
ac_res
=
$ac_cv_search_sched_yield
if
test
"
$ac_res
"
!=
no
;
then
:
test
"
$ac_res
"
=
"none required"
||
LIBS
=
"
$ac_res
$LIBS
"
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether byte ordering is bigendian"
>
&5
$as_echo_n
"checking whether byte ordering is bigendian... "
>
&6
;
}
if
test
"
${
ac_cv_c_bigendian
+set
}
"
=
set
;
then
:
...
...
libgo/configure.ac
View file @
ed4ebabc
...
...
@@ -274,6 +274,9 @@ PTHREAD_LIBS=
AC_CHECK_LIB([pthread], [pthread_create], PTHREAD_LIBS=-lpthread)
AC_SUBST(PTHREAD_LIBS)
dnl Test if -lrt is required for sched_yield.
AC_SEARCH_LIBS([sched_yield], [rt])
AC_C_BIGENDIAN
GCC_CHECK_UNWIND_GETIPINFO
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment