<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body dir="ltr" bgcolor="#ffffff" text="#000000"> <p style="margin-bottom: 0cm; margin-top: 0pt;">Hello,</p> <p style="margin-bottom: 0cm; margin-top: 0pt;"><br> </p> <p style="margin-bottom: 0cm; margin-top: 0pt;">I am writing a target for LLVM 2.1 and I want to use the method CloneFunction from Transform/Utils/. The symbol is defined only in libLLVMTransformUtils.a so I get a linking error (undefined symbol) when I execute the module. I tried adding the LINK_LIBS_IN_SHARED and LLVMLIBS flags to the makefile but it didn't work. I guess that I can modify the LLVM libTransformUtils build so that it creates a shared object so I can load it in runtime, it doesn't seem like a proper solution. <br> </p> <p style="margin-bottom: 0cm; margin-top: 0pt;"><br> Should I be using Transform/Utils at all ? If so, why is it not linked by default and how can I link it ?</p> <p style="margin-bottom: 0cm; margin-top: 0pt;"><br> </p> <p style="margin-bottom: 0cm; margin-top: 0pt;">Nadav<br> </p> <p style="margin-bottom: 0cm; margin-top: 0pt;"><br> </p> <p style="margin-bottom: 0cm; margin-top: 0pt;">[1] CloneFunction: <a class="moz-txt-link-freetext" href="http://llvm.org/doxygen/namespacellvm.html#a519">http://llvm.org/doxygen/namespacellvm.html#a519</a></p> <p style="margin-bottom: 0cm; margin-top: 0pt;"><br> </p> <p style="margin-bottom: 0cm; margin-top: 0pt;"><br> </p> </body> </html>