lld doesn't like linking with the same objects twice

Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -194,7 +194,8 @@ warn-auto.sh systype
 	hp-ux-*) ;; \
 	sco*) ;; \
 	*) echo 'ranlib "$$main"' ;; \
-	esac \
+	esac; \
+	echo 'cp "$$main" "lib$$main"'; \
 	) > makelib
 	chmod 755 makelib
 
@@ -223,11 +224,11 @@ alloc_re.o byte_copy.o byte_cr.o envread.o error.o err
 hostname.o sig.o stat_dir.o str_diffn.o str_len.o substdio_copy.o \
 substdi.o substdio.o taia_fmtfrac.o taia_now.o taia_tai.o tempfile.o \
 writefile.o
-	./load safecat getln.a str.a stralloc.a strerr.a substdio.a \
+	./load safecat stralloc.a strerr.a substdio.a \
 	alloc.o alloc_re.o byte_copy.o byte_cr.o envread.o error.o \
 	error_str.o fmt_uint64.o hostname.o sig.o stat_dir.o str_diffn.o \
 	str_len.o substdi.o substdio.o substdio_copy.o taia_fmtfrac.o \
-	taia_now.o taia_tai.o tempfile.o writefile.o
+	taia_now.o taia_tai.o tempfile.o writefile.o -lgetln -lstr
 
 safecat.0: \
 safecat.1
