[LLVMdev] Linux-x86 Compatability
Casey Carter
ccarter at cs.uiuc.edu
Fri Sep 13 10:10:01 PDT 2002
Chris Lattner wrote:
>>ISSUE: In Interpreter::getCurrentExecutablePath(), dladdr() is a
>>Solarisism. Luckily, getCurrentExecutablePath isn't being currently
>>used anywhere in lli.
>>
>>
>
>It looks like under my linux box, the dladdr prototype is wrapped with a
>#ifdef __USE_GNU
>
>option... If so, perhaps the write patch is to add -DGNU-SOURCES (or
>whatever that option is) to the makefiles? Can you verify that this would
>fix it?
>
>Thanks again for the help!
>
>-Chris
>
>
Ooops. My mistake - you are correct. My other patch that #defines
_GNU_SOURCE in tools/lli fixes this issue also. So as long as you apply
that patch, you cam simply discard this one.
--
Casey Carter
Casey at Carter.net
ccarter at uiuc.edu
AIM: cartec69
More information about the llvm-dev
mailing list