Ivan Garramona
2014-Aug-01 19:01 UTC
[LLVMdev] Building LLVM as a shared library on MinGw (Makefiles)
The shared library works fine here. I only made one modification to the 'tools/llvm-shlib/Makefile', because otherwise, two shared libraries would be created. I've commented out the line 'SHARED_ALIAS := 1' from the Makefile. Here is the command line i used to build LLVM/Clang: ../../configure --build=i686-w64-mingw32 --disable-assertions --enable-keep-symbols --enable-optimized --enable-shared --enable-targets=x86,x86_64 I used Mingw-w64 4.9.1 i686 posix + Clang r213454. Sorry for my English. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140801/7e0e1f74/attachment.html>
Keno Fischer
2014-Aug-01 19:51 UTC
[LLVMdev] Building LLVM as a shared library on MinGw (Makefiles)
Hmm, that's intersting. I guess the difference might be that you're targetting 32bit and I'm targetting 64bit. Does it still work if you replace "s/^.* T _\([^.][^.]*\)$$/\1/p" by "s/^.* T \([^.][^.]*\)$$/\1/p" in tools/llvm-shlib (and similarly on the next line). If so I'll submit this as a patch, if not I'll see how we can distinguish the two cases. On Fri, Aug 1, 2014 at 3:01 PM, Ivan Garramona <heavenandhell171 at gmail.com> wrote:> The shared library works fine here. I only made one modification to the > 'tools/llvm-shlib/Makefile', because otherwise, two shared libraries would > be created. > > I've commented out the line 'SHARED_ALIAS := 1' from the Makefile. > > Here is the command line i used to build LLVM/Clang: > ../../configure --build=i686-w64-mingw32 --disable-assertions > --enable-keep-symbols --enable-optimized --enable-shared > --enable-targets=x86,x86_64 > > I used Mingw-w64 4.9.1 i686 posix + Clang r213454. > > Sorry for my English.
Ivan Garramona
2014-Aug-01 20:25 UTC
[LLVMdev] Building LLVM as a shared library on MinGw (Makefiles)
2014-08-01 16:51 GMT-03:00 Keno Fischer <kfischer at college.harvard.edu>:> Hmm, that's intersting. I guess the difference might be that you're > targetting 32bit and I'm targetting 64bit. Does it still work if you > replace > "s/^.* T _\([^.][^.]*\)$$/\1/p" > by > "s/^.* T \([^.][^.]*\)$$/\1/p" > in > tools/llvm-shlib (and similarly on the next line). If so I'll submit > this as a patch, if not I'll see how we can distinguish the two cases. >It does work. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140801/a4f8459e/attachment.html>