On 09/13/2012 10:03 AM, Roland McGrath wrote: > Put the definition of the lock in getenv.c, so that when linking > statically, using getenv does not force setenv to be linked in. Also, make sure that the declaration of the lock is marked hidden, so that you don't incur an extra got entry. r~