diff options
author | Chris Johns <chrisj@rtems.org> | 2019-08-29 13:30:54 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2019-08-29 13:30:54 +1000 |
commit | 1c5e45cbc4afcaae98be767e672c5db5a68a67fd (patch) | |
tree | b7cf8a784fba6741643fba8b01fe51e1545b2737 | |
parent | bare/t1lib: Format fix. (diff) | |
download | rtems-source-builder-1c5e45cbc4afcaae98be767e672c5db5a68a67fd.tar.bz2 |
rtems/bsps: Add machine flags to the linker flags.
- Some packages link executables and this needs valid
machine flags or you can get errors mixing libraries.
-rw-r--r-- | rtems/config/rtems-bsp.cfg | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rtems/config/rtems-bsp.cfg b/rtems/config/rtems-bsp.cfg index 1af77f9..4e6152d 100644 --- a/rtems/config/rtems-bsp.cfg +++ b/rtems/config/rtems-bsp.cfg @@ -205,6 +205,12 @@ %endif # +# The linker flags need to include the machine options for the BSP. +# +%define mflags_filter awk '{for (i=1;i<NF;++i) if ($i ~ /\-m/) printf("%s ",$i);}' +%define rtems_bsp_ldflags %{rtems_bsp_ldflags} $(echo "%{rtems_bsp_cflags}" | %{mflags_filter}) + +# # Map to names used for cross compiling. # %define host_cc %{rtems_bsp_cc} |