[LLVMdev] Compile dll on Mingw
geek4civic at gmail.com
Thu Sep 2 02:26:15 PDT 2010
Good evening, Yuan
Excuse me, I gave up Debug build earlier due to my poor hosts.
I will improve able to build Debug ;)
You may build with --enable-optimized=yes
(or, make ENABLE_OPTIMIZED=1)
btw, DLL builder has implemented since Aug.
It might be easier to port DLL stuff to 2.6 :) Do you try?
2010年9月2日 17:16:25 UTC+9 yuan zheng <tsinghuayuan86 at gmail.com>:
> Hello, NAKAMURA Takumi
> As you said, I check out the head from svn trunk.
> I build the source code as the following steps:
> $./configure --enable-shared
> $ make
> After 1 hour, the building procedure is stopped and appear the following
> error message:
> LLVM-2.8svn.a.o: too many sections (63677)
> 32/bin/ld.exe: final link failed: File too big
> collect2: ld returned 1 exit status
> make: ***
> svn.a.o] Error 1
> make: Leaving directory `/home/MK/llvm-2.8/llvm/tools/llvm-shlib'
> make: *** [all] Error 1
> Expect your answer.
> 2010/9/2 NAKAMURA Takumi <geek4civic at gmail.com>
>> Hello, Yuan
>> > I'm a newbie about llvm. Now, our project need the dynamic link
>> > library(dll)
>> > about all of llvm library, such as libLLVMCore.dll, libLLVMSupport.dll,
>> > and
>> > so on. How should I do?
>> You may do, "/path/to/configure --enable-shared=yes",
>> to build LLVM-2.8svn.dll.
>> On your project, you have to specify to linker,
>> "-L/path/to/dll -lLLVM-2.8svn"
>> (maybe with -Wl,--enable-auto-import)
>> We provide not individual DLLs but a "BIG" one.
>> We don't provide import libraries.
>> I think "DLL" feature is still experimental, and I need more feedback.
>> When you met any troubles with DLL, ask here or file bugs!
>> Have fun!
More information about the llvm-dev