Bug 243382 - devel/llvm80: 'llvm-config80 --libs' doesn't return the directory where the library is located
Summary: devel/llvm80: 'llvm-config80 --libs' doesn't return the directory where the l...
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Brooks Davis
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2020-01-15 22:42 UTC by Yuri Victorovich
Modified: 2020-01-16 09:31 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (brooks)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer 2020-01-15 22:42:41 UTC
> $ llvm-config80 --libs
> -lLLVM-8
Comment 1 Yuri Victorovich freebsd_committer 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 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 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 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 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 2020-01-16 09:31:07 UTC
(In reply to Brooks Davis from comment #6)

Thanks, Brooks!