summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2017-08-27 22:14:12 +0000
committerderaadt <deraadt@openbsd.org>2017-08-27 22:14:12 +0000
commit332a4d9ca541b509320f79725a964d1adf8a3141 (patch)
tree240da26f6c3b34ccbc13192ced0126f8ff1c617b
parentAdd rkiic(4) a driver for the i2c controllers found on the Rockchip RK3399. (diff)
downloadwireguard-openbsd-332a4d9ca541b509320f79725a964d1adf8a3141.tar.xz
wireguard-openbsd-332a4d9ca541b509320f79725a964d1adf8a3141.zip
Link the ~45 .o which become ld.so in a random order.
ok kettenis visa
-rw-r--r--libexec/ld.so/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/ld.so/Makefile b/libexec/ld.so/Makefile
index dcb295fc02e..d087d59780b 100644
--- a/libexec/ld.so/Makefile
+++ b/libexec/ld.so/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.66 2017/08/27 22:04:47 deraadt Exp $
+# $OpenBSD: Makefile,v 1.67 2017/08/27 22:14:12 deraadt Exp $
SUBDIR=ldconfig ldd
MAN= ld.so.1
@@ -62,8 +62,9 @@ $(test_prog):
printf '#include <stdio.h>\nint main(int argc, char **argv){ printf("%%s: ", argv[0]); printf("%%s!\\n", argv[1] ? argv[1] : "foo"); }\n' | \
$(CC) -x c - -Wl,-dynamic-linker,${.OBJDIR}/$(candidate) -o $@
-$(PROG): $(test_prog) ${VERSION_SCRIPT}
- $(LD) ${DEBUG} -x -e _dl_start $(ELF_LDFLAGS) -o $(candidate) $(OBJS)
+$(PROG): $(test_prog) ${VERSION_SCRIPT} $(OBJS)
+ $(LD) ${DEBUG} -x -e _dl_start $(ELF_LDFLAGS) -o $(candidate) \
+ `echo ${OBJS} | tr " " "\n" | sort -R`
.ifndef CROSSDIR
ulimit -c 0; [ "`${.OBJDIR}/$(test_prog) ok`" = "${.OBJDIR}/$(test_prog): ok!" ]
.endif