[PATCH] RTEMS: Add -lz and -lm to LIB_SPECS

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Sep 18 13:22:11 UTC 2014


RTEMS core libraries depend on libz and libm.  This patch should be
applied to all open GCC branches.

gcc/ChangeLog
2014-09-18  Sebastian Huber  <sebastian.huber at embedded-brains.de>

        * config/rtems.h (LIB_SPECS): Add -lz and -lm to qrtems.
---
 gcc/config/rtems.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/rtems.h b/gcc/config/rtems.h
index 4d94f82..5ecab01 100644
--- a/gcc/config/rtems.h
+++ b/gcc/config/rtems.h
@@ -40,6 +40,6 @@ along with GCC; see the file COPYING3.  If not see
 #define LIB_SPEC "%{!qrtems: " STD_LIB_SPEC "} " \
 "%{!nostdlib: %{qrtems: --start-group \
  -lrtemsbsp -lrtemscpu \
- -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}}"
+ -lz -lm -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}}"
 
 #define TARGET_POSIX_IO
-- 
1.8.4.5



More information about the devel mailing list