source: rtems/testsuites/aclocal/gcc-specs.m4 @ cf2e6dde

5
Last change on this file since cf2e6dde was 5cbc9c5, checked in by Jacob Hansen <jacob.hansen@…>, on 02/07/18 at 11:35:33

clang: Keep -qrtems and -B for compilers without -specs support

This is needed for building rtems correctly with Clang.

Note that this change does not mean rtems can build correctly with
mainline clang. However the change allows building rtems with a
Clang toolchain that has a rtems frontend similar that of GCC's
builtin rtems specs.

  • Property mode set to 100644
File size: 405 bytes
Line 
1dnl Check whether the target compiler accepts -specs
2
3AC_DEFUN([RTEMS_GCC_SPECS],
4[AC_REQUIRE([RTEMS_PROG_CC])
5AC_CACHE_CHECK(whether $CC accepts -specs,rtems_cv_gcc_specs,
6[
7rtems_cv_gcc_specs=no
8if test x"$GCC" = x"yes"; then
9  touch confspec
10  echo 'void f(){}' >conftest.c
11  if test -z "`${CC} -specs confspec -c conftest.c 2>&1`";then
12    rtems_cv_gcc_specs=yes
13  fi
14fi
15rm -f confspec conftest*
16])])
Note: See TracBrowser for help on using the repository browser.