Bug 243382

Summary: devel/llvm80: 'llvm-config80 --libs' doesn't return the directory where the library is located
Product: Ports & Packages Reporter: Yuri Victorovich <yuri>
Component: Individual Port(s)Assignee: Brooks Davis <brooks>
Status: Closed Works As Intended    
Severity: Affects Only Me CC: yuri
Priority: --- Keywords: needs-qa
Version: LatestFlags: bugzilla: maintainer-feedback? (brooks)
Hardware: Any   
OS: Any   

Description Yuri Victorovich freebsd_committer freebsd_triage 2020-01-15 22:42:41 UTC
> $ llvm-config80 --libs
> -lLLVM-8
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2020-01-15 22:43:14 UTC
Other llvm versions probably have the same problem too.
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2020-01-16 00:19:16 UTC
@Yuri 
 - What should the value be?
 - Is this a recent change/regression?
Comment 3 Yuri Victorovich freebsd_committer freebsd_triage 2020-01-16 00:57:40 UTC
It should have -L/usr/local/llvm80/lib, otherwise apps invoking ```llvm-config --libs``` fail.

Not sure if this is a regression, I never tried it before.
Comment 4 Brooks Davis freebsd_committer freebsd_triage 2020-01-16 08:04:46 UTC
I'm not convinced by this analysis.  You're expectation matches pkg-config, but llvm-config isn't pkg-config.

from llvm-config80's help:

  --libs            Libraries needed to link against LLVM components

from pkg-config -h:

  --libs                            print required linker flags to stdout
Comment 5 Yuri Victorovich freebsd_committer freebsd_triage 2020-01-16 08:08:26 UTC
(In reply to Brooks Davis from comment #4)

> --libs            Libraries needed to link against LLVM components

Value defined like this can't be useful without a library folder.
This perhaps is a problem with how it is defined by LLVM, but this is still a problem.
Comment 6 Brooks Davis freebsd_committer freebsd_triage 2020-01-16 09:02:24 UTC
(In reply to Yuri Victorovich from comment #5)

> $ llvm-config80 --ldflags
> -L/usr/local/llvm80/lib
Comment 7 Yuri Victorovich freebsd_committer freebsd_triage 2020-01-16 09:31:07 UTC
(In reply to Brooks Davis from comment #6)

Thanks, Brooks!