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