http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46695
Peter O'Gorman <pogma at thewrittenword dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pogma at thewrittenword dot | |com --- Comment #1 from Peter O'Gorman <pogma at thewrittenword dot com> 2010-11-29 23:07:34 UTC --- (In reply to comment #0) > /bin/sh ./libtool --tag=CC --mode=link /GCC/current/bin/gcc-4.6trunk -Wall > -Werror -g -O2 -no-undefined > Undefined symbols: > "_environ", referenced from: > _environ$non_lazy_ptr in libiberty.a(pex-unix.o) > _environ$non_lazy_ptr in libiberty.a(xmalloc.o) > ld: symbol(s) not found Hi Iain - Ralf pointed me at this report. You're passing -no_undefined and want the library to build allowing undefined symbols? I'm not sure about that. It may be better to patch libiberty to # include <crt_externs.h> and use _NSGetEnviron() instead?