[LLVMdev] rdynamic on Mac

Alastair Lynn arplynn at gmail.com
Mon Aug 31 12:27:02 PDT 2009


Hi-

You /cannot/ build static binaries on Darwin apart from a few strange  
edge cases like the dynamic linker itself and kernel extensions - it's  
all implied to be dynamic. Where are the symbols you're trying to  
access coming from?

Alastair

On 31 Aug 2009, at 18:15, Renato Golin wrote:

> Hi all,
>
> My example compiler is working fine on Linux, including the extern'd
> functions (via -rdynamic flag on linker), but a friend on a MacOS
> (Darwin) cannot find the extern'd function.
>
> LLVM ERROR: Program used external function 'printVar' which could not
> be resolved!
>
> I've read some posts on the web indicating problems with the -rdynamic
> option on Mac's GCC, but I'm not sure. What's the Mac-style for that?
>
> cheers,
> --renato
>
> Reclaim your digital rights, eliminate DRM, learn more at
> http://www.defectivebydesign.org/what_is_drm
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3912 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090831/2899d8e2/attachment.bin>


More information about the llvm-dev mailing list