1 |
Dnia 2015-09-20, o godz. 22:32:54 |
2 |
Jauhien Piatlicki <jauhien@g.o> napisał(a): |
3 |
|
4 |
> Hi, |
5 |
> |
6 |
> the first question is addressed both to llvm-dev and gentoo-dev. The |
7 |
> second one is Gentoo specific. |
8 |
> |
9 |
> Is there any possibility to build LLVM both as static and shared libraries? |
10 |
> |
11 |
> What I see currently is that our ebuild makes LLVM to build shared libs |
12 |
> unconditionally. Is there a possibility (if it is impossible to build |
13 |
> both lib types) to at least give to user control on what kind of libs he |
14 |
> will have? |
15 |
|
16 |
No, static libraries are security flaw and waste of time. |
17 |
|
18 |
The old Makefile-based build system used to build all LLVM libraries as |
19 |
static, then link it all into one big .so which required special |
20 |
handling. These days we use CMake which supports building only one type |
21 |
of libraries. |
22 |
|
23 |
Of course, some upstreams hack CMake to create duplicate library |
24 |
entries for this. But we're certainly not going to do that for |
25 |
the common Gentoo sake of 'choice' to shot yourself in the foot. |
26 |
|
27 |
-- |
28 |
Best regards, |
29 |
Michał Górny |
30 |
<http://dev.gentoo.org/~mgorny/> |