Skip to contentSkip to conversation

package/libjcat: fix linking, add missing intl library

PATCH In review Waldemar Brodkorb 2 participants 2 messages Aug 7, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/libjcat: fix linking, add missing intl library

For musl/uClibc-ng toolchains we need to explicitely link libintl. The problem exist since the addition of the package in commit e52605c092d8eaa926da8720ae498a38eddb5205.

Fixes:
- http://autobuild.buildroot.net/results/58c/58c7ecbcfab96ebbc7a20291d4712cf64094b9f7/
- http://autobuild.buildroot.net/results/5d7/5d7c5dea0213f5a24489c397c5703c0601b2f12d/

---
v1->v2:
- use $(TARGET_NLS_LIBS) / $(TARGET_NLS_DEPENDENCIES) for more correctness (suggested by Thomas P.)

I only tested a minimal musl toolchain this time, but I think it should work for uClibc-ng, too.

---
 package/libjcat/libjcat.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/libjcat/libjcat.mk +3 -1
index e13e5dbfb7..c365c1914b 100644
@@ -10,7 +10,9 @@ LIBJCAT_SOURCE = libjcat-$(LIBJCAT_VERSION).tar.xz
 LIBJCAT_LICENSE = LGPL-2.1+
 LIBJCAT_LICENSE_FILES = LICENSE
 LIBJCAT_INSTALL_STAGING = YES
-LIBJCAT_DEPENDENCIES = host-pkgconf json-glib libglib2
+LIBJCAT_DEPENDENCIES = host-pkgconf json-glib libglib2 $(TARGET_NLS_DEPENDENCIES)
+
+LIBJCAT_LDFLAGS = $(TARGET_NLS_LIBS)
 
 LIBJCAT_CONF_OPTS = \
 	-Dgtkdoc=false \
Signature · 6 lines
2.39.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 8 lines · On Wed, 7 Aug 2024 14:48:47 +0200 Waldemar Brodkorb <[email protected]> wrote:

For musl/uClibc-ng toolchains we need to explicitely link libintl. The problem exist since the addition of the package in commit e52605c092d8eaa926da8720ae498a38eddb5205.

Fixes:
- http://autobuild.buildroot.net/results/58c/58c7ecbcfab96ebbc7a20291d4712cf64094b9f7/
- http://autobuild.buildroot.net/results/5d7/5d7c5dea0213f5a24489c397c5703c0601b2f12d/

Quoted 5 lines

---
v1->v2:
- use $(TARGET_NLS_LIBS) / $(TARGET_NLS_DEPENDENCIES) for more correctness (suggested by Thomas P.)

Thanks for the v2, applied to master, thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot