llvm.org GIT mirror llvm / c7d93be
Tell people using the tutorial how to make it actually work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141103 91177308-0d34-0410-b5e6-96231b3b80d8 David Chisnall 7 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
814814
815815
816816
817

On some platforms, you will need to specify -rdynamic or -Wl,--export-dynamic

818 when linking. This ensures that symbols defined in the main executable are
819 exported to the dynamic linker and so are available for symbol resolution at
820 run time. This is not needed if you compile your support code into a shared
821 library, although doing that will cause problems on Windows.

822
817823

Here is the code:

818824
819825