Changeset 5cbc9c5 in rtems


Ignore:
Timestamp:
Feb 7, 2018, 11:35:33 AM (21 months ago)
Author:
Jacob Hansen <jacob.hansen@…>
Branches:
master
Children:
56e61e24
Parents:
9ed109c
git-author:
Jacob Hansen <jacob.hansen@…> (02/07/18 11:35:33)
git-committer:
Daniel Hellstrom <daniel@…> (09/20/18 10:48:32)
Message:

clang: Keep -qrtems and -B for compilers without -specs support

This is needed for building rtems correctly with Clang.

Note that this change does not mean rtems can build correctly with
mainline clang. However the change allows building rtems with a
Clang toolchain that has a rtems frontend similar that of GCC's
builtin rtems specs.

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/aclocal/prog-cc.m4

    r9ed109c r5cbc9c5  
    2929RTEMS_GCC_SPECS
    3030
     31dnl Compilers that does not support --specs (Clang) still needs -B and -qrtems
     32GCCSPECS="-B\$(RTEMS_SOURCE_ROOT)/bsps/\$(RTEMS_CPU)/\$(RTEMS_BSP_FAMILY)/start"
    3133AS_IF([test x"$rtems_cv_gcc_specs" = xyes],[
    32 GCCSPECS="-B\$(RTEMS_SOURCE_ROOT)/bsps/\$(RTEMS_CPU)/\$(RTEMS_BSP_FAMILY)/start"
    33 GCCSPECS="${GCCSPECS} -specs bsp_specs -qrtems"])
     34GCCSPECS="${GCCSPECS} -specs bsp_specs"])
    3435AC_SUBST(GCCSPECS)
     36GCCSPECS="${GCCSPECS} -qrtems"
    3537
    3638AS_IF([test "$GCC" = yes],[
  • testsuites/aclocal/prog-cc.m4

    r9ed109c r5cbc9c5  
    2525RTEMS_PROG_CC
    2626
     27dnl check if the compiler supports -specs
     28RTEMS_GCC_SPECS
     29
    2730AS_IF([test x"$GCC" = xyes],[
    2831GCCSPECS="-B\$(RTEMS_SOURCE_ROOT)/bsps/\$(RTEMS_CPU)/\$(RTEMS_BSP_FAMILY)/start"
    29 GCCSPECS="${GCCSPECS} -specs bsp_specs -qrtems"])
     32AS_IF([test x"$rtems_cv_gcc_specs" = xyes],[
     33GCCSPECS="${GCCSPECS} -specs bsp_specs"])
     34GCCSPECS="${GCCSPECS} -qrtems"])
    3035AC_SUBST(GCCSPECS)
    3136
Note: See TracChangeset for help on using the changeset viewer.