]> Zhao Yanbai Git Server - minix.git/commitdiff
csu: restore crt1.o symlink
authorBen Gras <ben@minix3.org>
Tue, 15 Jan 2013 08:01:33 +0000 (08:01 +0000)
committerBen Gras <ben@minix3.org>
Tue, 15 Jan 2013 09:20:27 +0000 (09:20 +0000)
. minix gcc package uses crt1.o to link

lib/csu/common/Makefile.inc

index 98b50d23e4f8de44df3288e617479cf9c72a34a7..c635479c6772454a31d5bfa9b7db8fd562bc573b 100644 (file)
@@ -10,6 +10,10 @@ CPPFLAGS+=   -I${NETBSDSRCDIR}/libexec/ld.elf_so -I${COMMON_DIR} -I.
 OBJS+=         crt0.o gcrt0.o crti.o crtn.o
 OBJS+=         crtbegin.o crtbeginS.o crtend.o
 
+# BJG - for backwards compatability with minix gcc
+# which links with crt1.o instead of crt0.o
+SYMLINKS+=     crt0.o ${LIBDIR}/crt1.o
+
 realall: ${OBJS}
 
 crtbegin.o: crtbegin.S