tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

environ not found



It seems Linux defines environ(7) in libc itself, while in NetBSD it's
in crt0.o. While building libreoffice, I see

Making:    libosl_process.so
../../../unxbsdx3.pro/slo/osl_process.o: In function 
`read_parent_environment(std::vector<std::string, rtl::Allocator<std::string> 
>*)':
osl_process.cxx:(.text+0x416): undefined reference to `environ'
osl_process.cxx:(.text+0x4a0): undefined reference to `environ'                 
                                                                                
                                                  

The build process is a bit opaque to me. What linker (or compiler?)
flags could cause this or what needs to be added?

Thanks,
 Thomas


Home | Main Index | Thread Index | Old Index