URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 30 |
Rev 173 |
dnl
|
dnl
|
dnl $Id: gcc-specs.m4,v 1.2 2001-09-27 11:59:11 chris Exp $
|
dnl $Id: gcc-specs.m4,v 1.2 2001-09-27 11:59:11 chris Exp $
|
dnl
|
dnl
|
dnl Check whether the target compiler accepts -specs
|
dnl Check whether the target compiler accepts -specs
|
dnl
|
dnl
|
|
|
AC_DEFUN(RTEMS_GCC_SPECS,
|
AC_DEFUN(RTEMS_GCC_SPECS,
|
[AC_REQUIRE([RTEMS_PROG_CC])
|
[AC_REQUIRE([RTEMS_PROG_CC])
|
AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts -specs,rtems_cv_gcc_specs,
|
AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts -specs,rtems_cv_gcc_specs,
|
[
|
[
|
rtems_cv_gcc_specs=no
|
rtems_cv_gcc_specs=no
|
if test "$rtems_cv_prog_gcc" = "yes"; then
|
if test "$rtems_cv_prog_gcc" = "yes"; then
|
touch confspec
|
touch confspec
|
echo 'void f(){}' >conftest.c
|
echo 'void f(){}' >conftest.c
|
if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
|
if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
|
rtems_cv_gcc_specs=yes
|
rtems_cv_gcc_specs=yes
|
fi
|
fi
|
fi
|
fi
|
rm -f confspec conftest*
|
rm -f confspec conftest*
|
])])
|
])])
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.