Changeset 5cbc9c5 in rtems for testsuites


Ignore:
Timestamp:
Feb 7, 2018, 11:35:33 AM (22 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.

Location:
testsuites/aclocal
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • 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.