[LLVMdev] Linux-x86 Compatability
ccarter at cs.uiuc.edu
Fri Sep 13 09:50: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.
PATCH: Apply from llvm top-level directory with "patch -p0".
Casey at Carter.net
ccarter at uiuc.edu
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the llvm-dev