mirror of git://gcc.gnu.org/git/gcc.git
Turn PR_SET_NAME check into link check
Fixes cross compilation for libiberty after my change libiberty/ 2010-10-07 Andi Kleen <ak@linux.intel.com> * configure: Regenerate. * configure.ac: Turn PR_SET_NAME check into link check. From-SVN: r165086
This commit is contained in:
parent
844ba5faec
commit
4e00fad27e
|
@ -1,3 +1,8 @@
|
||||||
|
2010-10-07 Andi Kleen <ak@linux.intel.com>
|
||||||
|
|
||||||
|
* configure: Regenerate.
|
||||||
|
* configure.ac: Turn PR_SET_NAME check into link check.
|
||||||
|
|
||||||
2010-10-06 Andi Kleen <ak@linux.intel.com>
|
2010-10-06 Andi Kleen <ak@linux.intel.com>
|
||||||
|
|
||||||
* Makefile.in (CFILES): Add setproctitle.
|
* Makefile.in (CFILES): Add setproctitle.
|
||||||
|
|
|
@ -5707,13 +5707,10 @@ fi
|
||||||
|
|
||||||
|
|
||||||
# check for prctl PR_SET_NAME
|
# check for prctl PR_SET_NAME
|
||||||
if test "$cross_compiling" = yes; then :
|
if test x$gcc_no_link = xyes; then
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
|
||||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
fi
|
||||||
as_fn_error "cannot run test program while cross compiling
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
See \`config.log' for more details." "$LINENO" 5; }
|
|
||||||
else
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
|
|
||||||
#include <sys/prctl.h>
|
#include <sys/prctl.h>
|
||||||
|
@ -5723,15 +5720,13 @@ int main()
|
||||||
}
|
}
|
||||||
|
|
||||||
_ACEOF
|
_ACEOF
|
||||||
if ac_fn_c_try_run "$LINENO"; then :
|
if ac_fn_c_try_link "$LINENO"; then :
|
||||||
|
|
||||||
$as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h
|
$as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h
|
||||||
|
|
||||||
fi
|
fi
|
||||||
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
rm -f core conftest.err conftest.$ac_objext \
|
||||||
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
*-*-cygwin* | *-*-mingw*)
|
*-*-cygwin* | *-*-mingw*)
|
||||||
|
|
|
@ -536,7 +536,7 @@ AC_SUBST(CHECK)
|
||||||
AC_SUBST(target_header_dir)
|
AC_SUBST(target_header_dir)
|
||||||
|
|
||||||
# check for prctl PR_SET_NAME
|
# check for prctl PR_SET_NAME
|
||||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
AC_LINK_IFELSE([AC_LANG_SOURCE([[
|
||||||
#include <sys/prctl.h>
|
#include <sys/prctl.h>
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue