[LLVMdev] Linux-x86 Compatability

Casey Carter ccarter at cs.uiuc.edu
Fri Sep 13 09:34:06 PDT 2002

ISSUE: In Interpreter::getCurrentExecutablePath(), dladdr() is a 
Solarisism.  Luckily, getCurrentExecutablePath isn't being currently 
used anywhere in lli.

ACTION: Wrap the method contents with #ifdef __sun__ ... #else return 
""; #endif.  If this functionality is actually desired, it would be more 
portable to hack up main() to join getcwd() with basename(argv[0]) to 
find the desired pathname.

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/31df4406/attachment.ksh>

More information about the llvm-dev mailing list