summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-10 05:38:32 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-10 05:38:32 +0000
commitb9b124c1d28e31177c6349c89fd514c0b27b6713 (patch)
tree4737dfe3e0b0f6f78826408f00801b9a7193a1f9 /Makerules
parentde2938242d9065152f3d503b3e025b8b7cffc90e (diff)
generate a symlink for older targets (like nios)
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makerules b/Makerules
index 5611cb907..f6b9cec1f 100644
--- a/Makerules
+++ b/Makerules
@@ -188,7 +188,11 @@ $(CTOR_TARGETS):
$(do_ar)
endif
-$(crt-y): $(CRTS) $(CTOR_TARGETS)
+CRTS_COMPAT = $(top_builddir)lib/crt0.o
+$(CRTS_COMPAT):
+ ln -fs crt1.o $(top_builddir)lib/crt0.o
+
+$(crt-y): $(CRTS) $(CTOR_TARGETS) $(CRTS_COMPAT)
$(top_builddir)lib/$(NONSHARED_LIBNAME): $(libc-nonshared-y)
$(Q)$(INSTALL) -d $(dir $@)