Module Name: src
Committed By: pooka
Date: Wed Dec 18 20:50:31 UTC 2013
Modified Files:
src/usr.bin/rump_allserver: rump_allserver.c
Log Message:
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)
To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/usr.bin/rump_allserver/rump_allserver.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/rump_allserver/rump_allserver.c
diff -u src/usr.bin/rump_allserver/rump_allserver.c:1.30 src/usr.bin/rump_allserver/rump_allserver.c:1.31
--- src/usr.bin/rump_allserver/rump_allserver.c:1.30 Wed Dec 18 20:48:31 2013
+++ src/usr.bin/rump_allserver/rump_allserver.c Wed Dec 18 20:50:30 2013
@@ -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 <rump/rumpuser_port.h>
#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 <sys/types.h>
@@ -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 */