[LLVMdev] Linux-x86 Compatability

Casey Carter 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 Carter
Casey at Carter.net
ccarter at uiuc.edu
AIM: cartec69

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20020913/d8071f18/attachment.ksh>


More information about the llvm-dev mailing list