Changeset c2113d3 in rtems for aclocal


Ignore:
Timestamp:
Dec 6, 2002, 7:13:50 AM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
dfa8fe34
Parents:
f69283e2
Message:

2002-12-06 Ralf Corsepius <corsepiu@…>

  • aclocal/env-rtemsbsp.m4: Add AC_ARG_VAR for CPU_CFLAGS, CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V, CFLAGS_PROFILE_V, RTEMS_BSP_FAMILY.
  • aclocal/prog-cc.m4: Reworked CFLAGS handling.
  • aclocal/prog-cxx.m4: Reworked CXXFLAGS handling.
Location:
aclocal
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • aclocal/env-rtemsbsp.m4

    rf69283e2 rc2113d3  
    88AC_BEFORE([$0], [RTEMS_PROJECT_ROOT])dnl
    99AC_BEFORE([$0], [RTEMS_CHECK_CUSTOM_BSP])dnl
     10
     11AC_ARG_VAR([CPU_CFLAGS],[])
     12AC_ARG_VAR([CFLAGS_OPTIMIZE_V],[])
     13AC_ARG_VAR([CFLAGS_DEBUG_V],[])
     14AC_ARG_VAR([CFLAGS_PROFILE_V],[])
     15AC_ARG_VAR([RTEMS_BSP_FAMILY],[])
    1016
    1117AC_ARG_VAR([RTEMS_BSP],[RTEMS_BSP to build])
  • aclocal/prog-cc.m4

    rf69283e2 rc2113d3  
    1010AC_BEFORE([$0], [AC_PROG_CC])dnl
    1111AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
     12
     13_RTEMS_FLAGS([CFLAGS],
     14  ["\$(CPU_CFLAGS) \$(RTEMS_CFLAGS_\$(VARIANT_V)_V) \$(CFLAGS_\$(VARIANT_V)_V) -g"])
    1215
    1316RTEMS_CHECK_TOOL(CC,gcc)
     
    3134
    3235if test "$GCC" = yes; then
    33 ]
    34 m4_if([$1],,[],[CPPFLAGS="$CPPFLAGS $1"])
    35 [
    36 CFLAGS=${CFLAGS--g -Wall}
     36RTEMS_CFLAGS="$RTEMS_CFLAGS -Wall"
     37m4_if([$1],,[],[RTEMS_CFLAGS="$RTEMS_CFLAGS $1"])
    3738fi
    3839])
  • aclocal/prog-cxx.m4

    rf69283e2 rc2113d3  
    1010AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
    1111
     12_RTEMS_FLAGS([CXXFLAGS],
     13  ["\$(CPU_CFLAGS) \$(RTEMS_CFLAGS_\$(VARIANT_V)_V) \$(CFLAGS_\$(VARIANT_V)_V) -g"])
     14
    1215dnl Only accept g++
    1316dnl NOTE: This might be too restrictive
     
    1619test -z "$CXX" \
    1720  && AC_MSG_ERROR([no acceptable c++ found in \$PATH])
     21
     22#if test "$GCC" = yes; then
     23#RTEMS_CXXFLAGS="$RTEMS_CXXFLAGS -Wall"
     24#m4_if([$1],,[],[RTEMS_CXXFLAGS="$RTEMS_CXXFLAGS $1"])
     25#fi
    1826])
    1927
Note: See TracChangeset for help on using the changeset viewer.