Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1279122
| From | Benjamin Drung <bdrung@debian.org> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#1126018: r-base: Please exclude LDFLAGS from libR.pc |
| Date | 2026-01-20 14:20 +0100 |
| Message-ID | <MfjOh-bWLF-9@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Package: r-base
Version: 4.5.2-1
Severity: important
Tags: patch
X-Debbugs-Cc: bdrung@debian.org
Dear Maintainer,
When building the pkg-config file for libR in src/unix/Makefile.in, the
following stanza,
```
install-pc:
@$(MKINSTALLDIRS) "$(DESTDIR)$(libdir)/pkgconfig"
-@$(SED) -e "s:@rhome:$(rhome):" \
-e "s:@rincludedir:$(rincludedir):" \
-e "s:@rarch:$(R_ARCH):" \
-e 's:@libsprivate:$(STATIC_LIBR_PC):' \
-e 's:@others:$(MAIN_LDFLAGS) $(LDFLAGS):' \
-e 's/@VERSION/$(VERSION)/' $(srcdir)/libR.pc.in \
> "$(DESTDIR)$(libdir)/pkgconfig/libR.pc"
```
combines MAIN_LDFLAGS with LDFLAGS and sticks it into the "Libs" field
of the resulting libR.pc file. That's not what you want: LDFLAGS
contains the user's linker flags at this point, i.e. whatever they have
in their environment variable.
On Ubuntu we started setting --package-metadata and ran into
https://launchpad.net/bugs/2138363. The --package-metadata flag must not
leak into the pkg-config file.
We applied the attached patch to the Ubuntu package to exclude LDFLAGS
from libR.pc. I forwarded the patches upstream and attached the patch
here.
--
Benjamin Drung
Debian & Ubuntu Developer
Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar
Bug#1126018: r-base: Please exclude LDFLAGS from libR.pc Benjamin Drung <bdrung@debian.org> - 2026-01-20 14:20 +0100 Bug#1126018: r-base: Please exclude LDFLAGS from libR.pc Dirk Eddelbuettel <edd@debian.org> - 2026-01-20 14:40 +0100
csiph-web