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)
This commit is contained in:
pooka 2013-12-18 20:50:30 +00:00
parent 57d34ab9b0
commit e51a22a59b
1 changed files with 3 additions and 3 deletions

View File

@ -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 */