4.104.114.95
Last change
on this file since 0063a93a was
0063a93a,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 08/16/08 at 04:02:41
|
2008-08-16 Ralf Corsepius <ralf.corsepius@…>
- aclocal/prog-cc.m4: Add -Wimplicit-function-declaration
-Wstrict-prototypes to RTEMS_CFLAGS.
|
-
Property mode set to
100644
|
File size:
865 bytes
|
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 target compiler may use --pipe |
---|
25 | RTEMS_GCC_PIPE |
---|
26 | test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe" |
---|
27 | |
---|
28 | AS_IF([test "$GCC" = yes],[ |
---|
29 | RTEMS_CFLAGS="$RTEMS_CFLAGS -Wall" |
---|
30 | # FIXME: This should be removed in production releases |
---|
31 | RTEMS_CFLAGS="$RTEMS_CFLAGS -Wimplicit-function-declaration -Wstrict-prototypes" |
---|
32 | m4_if([$1],,[],[RTEMS_CFLAGS="$RTEMS_CFLAGS $1"]) |
---|
33 | ]) |
---|
34 | AC_SUBST(RTEMS_CFLAGS) |
---|
35 | |
---|
36 | RTEMS_CPPFLAGS="-I\$(top_builddir) -I\$(PROJECT_INCLUDE)" |
---|
37 | AC_SUBST(RTEMS_CPPFLAGS) |
---|
38 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.