[LLVMdev] Linux-x86 Compatability

Chris Lattner sabre at nondot.org
Fri Sep 13 11:05:01 PDT 2002

> ISSUE: ExternalFunctions.cpp::lookupFunction() calls dlsym(RTLD_DEFAULT,
> ...).  In glibc, dlfcn.h does not make RTLD_DEFAULT visible unless
> _GNU_SOURCE is #defined.  Unlike the evil money-grubbing non-free
> software pigs at sun, the FSF is trying not to pollute the C namespace. ;)
> ACTION: Hack the Makefile to #define _GNU_SOURCE while compiling in
> tools/lli.  Yes, I know that this is ugly.

Applied.  I actually applied this to the top level Makefile.common file so
that all directories get it:




More information about the llvm-dev mailing list