Bug#697755: llvm-3.2: Please, cleanup compilation flags reported by llvm-config
Vincent Danjean
vdanjean at debian.org
Wed Jan 9 12:25:12 UTC 2013
Package: llvm-3.2
Version: 3.2-2
Severity: normal
Hi,
LLVM documentation report that:
"llvm-config makes it easier to build applications that use LLVM. It can print
the compiler flags, linker flags and object libraries needed to link against LLVM."
http://llvm.org/docs/CommandGuide/llvm-config.html
However, "llvm-config-3.2 --ldflags" reports
-L/usr/lib/llvm-3.2/lib -lpthread -lffi -ldl -lm
I think that these options are required when doing *static* linkage
(and note that all "-lXXX" are not flags but libs...)
However, Debian provides and encourages the use of shared libraries.
In this case, I do not see the interest to link any application or
library to pthread, ffi, dl and m libraries directly if they do not
use there symbols.
llvm-config should probably have another option (--static) to request
information about static linkage and default to dynamic linkage.
Another possibility is to provide a llvm-3.2.pc file that correctly
describe compilation options required when building and linking code
with llvm.
Regards,
Vincent
-- System Information:
Debian Release: 7.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386 armel mipsel
Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages llvm-3.2 depends on:
ii libc6 2.13-37
ii libffi5 3.0.10-3
ii libgcc1 1:4.7.2-4
ii libllvm3.2 3.2-2
ii libstdc++6 4.7.2-4
ii llvm-3.2-runtime 3.2-2
Versions of packages llvm-3.2 recommends:
ii llvm-3.2-dev 3.2-2
Versions of packages llvm-3.2 suggests:
pn llvm-3.2-doc <none>
-- no debconf information
More information about the Pkg-llvm-team
mailing list