From e51a22a59b411875f45577961357c4434a73797f Mon Sep 17 00:00:00 2001 From: pooka Date: Wed, 18 Dec 2013 20:50:30 +0000 Subject: [PATCH] Set LD_DYNAMIC_WEAK, required by glibc ld.so for -l params. (this accidentally slipped in the previous commit already, but I'm recommitting it to get cvs annotate right) --- usr.bin/rump_allserver/rump_allserver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/rump_allserver/rump_allserver.c b/usr.bin/rump_allserver/rump_allserver.c index 80ad5db61e84..86eca39a5c70 100644 --- a/usr.bin/rump_allserver/rump_allserver.c +++ b/usr.bin/rump_allserver/rump_allserver.c @@ -1,4 +1,4 @@ -/* $NetBSD: rump_allserver.c,v 1.30 2013/12/18 20:48:31 pooka Exp $ */ +/* $NetBSD: rump_allserver.c,v 1.31 2013/12/18 20:50:30 pooka Exp $ */ /*- * Copyright (c) 2010, 2011 Antti Kantee. All Rights Reserved. @@ -28,7 +28,7 @@ #include #ifndef lint -__RCSID("$NetBSD: rump_allserver.c,v 1.30 2013/12/18 20:48:31 pooka Exp $"); +__RCSID("$NetBSD: rump_allserver.c,v 1.31 2013/12/18 20:50:30 pooka Exp $"); #endif /* !lint */ #include @@ -309,7 +309,7 @@ main(int argc, char *argv[]) break; } case 'l': - setenv("LD_DYNAMIC_WEAK", "1", 1); + setenv("LD_DYNAMIC_WEAK", "1", 2); if (dlopen(optarg, RTLD_LAZY|RTLD_GLOBAL) == NULL) { char pb[MAXPATHLEN]; /* try to mimic linker -l syntax */