From: John Marino Date: Sat, 15 Oct 2011 00:45:14 +0000 (+0200) Subject: crt1.o: provide symbol definition of environ X-Git-Tag: v3.0.0~860 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/c54b5d8d8e1af1fe69da36b12d2ba79580a9ce55?ds=sidebyside crt1.o: provide symbol definition of environ Provide duplicate definition of char **environ to prevent linker choking on version scripts ending with "local: *". --- diff --git a/lib/libc/stdlib/getenv.c b/lib/libc/stdlib/getenv.c index 731b3c50e4..167dd7dc52 100644 --- a/lib/libc/stdlib/getenv.c +++ b/lib/libc/stdlib/getenv.c @@ -24,7 +24,6 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/lib/libc/stdlib/getenv.c,v 1.15 2008/08/03 22:47:23 scf Exp $ - * $DragonFly: src/lib/libc/stdlib/getenv.c,v 1.5 2005/04/28 13:51:55 joerg Exp $ */ #include "namespace.h" @@ -53,7 +52,7 @@ static const char CorruptEnvValueMsg[] = * intEnviron: Internally-built environ. Exposed via environ during * (re)builds of the environment. */ -extern char **environ; +char **environ; static char **origEnviron; static char **intEnviron = NULL; static int environSize = 0;