source: rtems/c/src/aclocal/prog-cc.m4 @ 2086948a

5
Last change on this file since 2086948a was 9964895, checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35

bsps: Move startup files to bsps

Adjust build support files to new directory layout.

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 951 bytes
Line 
1dnl
2dnl Check for target gcc
3dnl
4
5AC_DEFUN([RTEMS_PROG_CC],
6[
7AC_BEFORE([$0], [AC_PROG_CPP])dnl
8AC_BEFORE([$0], [AC_PROG_CC])dnl
9AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
10
11RTEMS_CHECK_TOOL(CC,gcc)
12test -z "$CC" && \
13  AC_MSG_ERROR([no acceptable cc found in \$PATH])
14AC_PROG_CC
15AC_PROG_CPP
16])
17
18AC_DEFUN([RTEMS_PROG_CC_FOR_TARGET],
19[
20dnl check target cc
21RTEMS_PROG_CC
22dnl check if the compiler supports -isystem
23RTEMS_GCC_ISYSTEM
24dnl check if the target compiler may use --pipe
25RTEMS_GCC_PIPE
26test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
27
28dnl check if the compiler supports --specs
29RTEMS_GCC_SPECS
30
31AS_IF([test x"$rtems_cv_gcc_specs" = xyes],[
32GCCSPECS="-B\$(RTEMS_SOURCE_ROOT)/bsps/\$(RTEMS_CPU)/\$(RTEMS_BSP_FAMILY)/start"
33GCCSPECS="${GCCSPECS} -specs bsp_specs -qrtems"])
34AC_SUBST(GCCSPECS)
35
36AS_IF([test "$GCC" = yes],[
37  RTEMS_RELLDFLAGS="-qnolinkcmds -nostdlib -r"
38])
39AC_SUBST(RTEMS_RELLDFLAGS)
40
41RTEMS_INCLUDES
42RTEMS_BSP_INCLUDES
43])
Note: See TracBrowser for help on using the repository browser.