[PATCH] build: Call rtems-ld with the $(CC) of the build
Sebastian Huber
sebastian.huber at embedded-brains.de
Mon Jan 7 12:41:32 UTC 2019
This enables support for non-standard compiler names, e.g.
sparc-rtems6-gcc.
---
testsuites/libtests/Makefile.am | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/testsuites/libtests/Makefile.am b/testsuites/libtests/Makefile.am
index 467c8a28d0..37bfd77e0c 100644
--- a/testsuites/libtests/Makefile.am
+++ b/testsuites/libtests/Makefile.am
@@ -491,9 +491,10 @@ dl06-o1.o: dl06/dl06-o1.c Makefile
dl06-o2.o: dl06/dl06-o2.c Makefile
$(AM_V_CC)$(COMPILE) -c -o $@ $<
dl06.rap: dl06.pre dl06-o1.o dl06-o2.o
- $(AM_V_GEN)rtems-ld -r $(RTEMS_BUILD_ROOT) -c "$(CPU_CFLAGS)" \
+ $(AM_V_GEN)rtems-ld -r $(RTEMS_BUILD_ROOT) \
+ -C $(CC) -c "$(CPU_CFLAGS)" \
-O rap -b $< -e rtems_main -s \
- -o $@ $(filter-out dl06.pre,$+) -lm
+ -o $@ $(filter-out dl06.pre,$+) -lm
dl06.tar: dl06.rap
@rm -f $@
$(AM_V_GEN)$(PAX) -w -f $@ $<
--
2.16.4
More information about the devel
mailing list