5
Last change
on this file since 5cbc9c5 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:
794 bytes
|
Line | |
---|
1 | dnl |
---|
2 | dnl Check for target gcc |
---|
3 | dnl |
---|
4 | |
---|
5 | AC_DEFUN([RTEMS_PROG_CC], |
---|
6 | [ |
---|
7 | AC_BEFORE([$0], [AC_PROG_CPP])dnl |
---|
8 | AC_BEFORE([$0], [AC_PROG_CC])dnl |
---|
9 | AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl |
---|
10 | |
---|
11 | case "$host" in |
---|
12 | *-*-rtems*) ac_cv_exeext=.exe;; |
---|
13 | esac |
---|
14 | |
---|
15 | RTEMS_CHECK_TOOL(CC,gcc) |
---|
16 | test -z "$CC" && \ |
---|
17 | AC_MSG_ERROR([no acceptable cc found in \$PATH]) |
---|
18 | AC_PROG_CC |
---|
19 | AC_PROG_CPP |
---|
20 | ]) |
---|
21 | |
---|
22 | AC_DEFUN([RTEMS_PROG_CC_FOR_TARGET], |
---|
23 | [ |
---|
24 | dnl check target cc |
---|
25 | RTEMS_PROG_CC |
---|
26 | |
---|
27 | dnl check if the compiler supports -specs |
---|
28 | RTEMS_GCC_SPECS |
---|
29 | |
---|
30 | AS_IF([test x"$GCC" = xyes],[ |
---|
31 | GCCSPECS="-B\$(RTEMS_SOURCE_ROOT)/bsps/\$(RTEMS_CPU)/\$(RTEMS_BSP_FAMILY)/start" |
---|
32 | AS_IF([test x"$rtems_cv_gcc_specs" = xyes],[ |
---|
33 | GCCSPECS="${GCCSPECS} -specs bsp_specs"]) |
---|
34 | GCCSPECS="${GCCSPECS} -qrtems"]) |
---|
35 | AC_SUBST(GCCSPECS) |
---|
36 | |
---|
37 | RTEMS_INCLUDES |
---|
38 | RTEMS_BSP_INCLUDES |
---|
39 | RTEMS_BSP_LINKCMDS |
---|
40 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.