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 | |
---|
1 | dnl Check whether the target compiler accepts -specs |
---|
2 | |
---|
3 | AC_DEFUN([RTEMS_GCC_SPECS], |
---|
4 | [AC_REQUIRE([RTEMS_PROG_CC]) |
---|
5 | AC_CACHE_CHECK(whether $CC accepts -specs,rtems_cv_gcc_specs, |
---|
6 | [ |
---|
7 | rtems_cv_gcc_specs=no |
---|
8 | if 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 |
---|
14 | fi |
---|
15 | rm -f confspec conftest* |
---|
16 | ])]) |
---|
Note: See
TracBrowser
for help on using the repository browser.