Browse Source

only create crt0.o compat link for certain arches

Mike Frysinger 18 years ago
parent
commit
d0bd553f57
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Makerules

+ 5 - 1
Makerules

@@ -188,9 +188,13 @@ $(CTOR_TARGETS):
 	$(do_ar)
 endif
 
-CRTS_COMPAT = $(top_builddir)lib/crt0.o
+ifeq ($(TARGET_ARCH),nios)
+CRTS_COMPAT := $(top_builddir)lib/crt0.o
 $(CRTS_COMPAT):
 	ln -fs crt1.o $(top_builddir)lib/crt0.o
+else
+CRTS_COMPAT :=
+endif
 
 $(crt-y): $(CRTS) $(CTOR_TARGETS) $(CRTS_COMPAT)