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