summaryrefslogtreecommitdiffstats
path: root/c/src/automake
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/automake')
-rw-r--r--c/src/automake/compile.am5
1 files changed, 3 insertions, 2 deletions
diff --git a/c/src/automake/compile.am b/c/src/automake/compile.am
index da7232f7eb..79507c50a2 100644
--- a/c/src/automake/compile.am
+++ b/c/src/automake/compile.am
@@ -146,13 +146,14 @@ LINK_FILES =\
if RTEMS_USE_GCC
## gcc >= 2.8
+RTEMS_RELLDFLAGS = -qnolinkcmds -nostdlib -Wl,-r
define make-rel
- $(LINK) -qnolinkcmds -nostdlib -Wl,-r $(XLDFLAGS) $^
+ $(LINK) $(RTEMS_RELLDFLAGS) $^
endef
else
## non-gcc
define make-rel
- $(LINK) $(XLDFLAGS) $^
+ $(LINK) $(RTEMS_RELLDFLAGS) $^
endef
endif