Skip to contentSkip to conversation

package/zstd: fix compile after latest version bump (needs LIBSRC_DIR)

PATCH New Peter Seiderer via buildroot 1 participant 1 message Jun 26, 2024 Zstd

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/zstd: fix compile after latest version bump (needs LIBSRC_DIR)

Fix compile after latest version bump, set LIBSRC_DIR for progams compile (the library path in programs/Makefile changed from '-L$(LIBZSTD)' to '-L$(LIB_BINDIR)' with LIB_BINDIR defined as 'LIB_BINDIR ?= $(LIBSRC_DIR)' in ib/libzstd.mk).

Fixes:
- http://autobuild.buildroot.net/results/928936875e85b58b4c1d82fd55b4584bbed8c629

LINK obj/conf_21004782925a08c8a5ee607f4870e098/zstd .../x86_64-buildroot-linux-uclibc/bin/ld: cannot find -lzstd: No such file or directory

---
 package/zstd/zstd.mk | 1 +
 1 file changed, 1 insertion(+)
package/zstd/zstd.mk +1 -0
index a2da0dd479..499f85923d 100644
@@ -79,6 +79,7 @@ define ZSTD_BUILD_CMDS
 	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \
 		-C $(@D)/lib $(ZSTD_BUILD_LIBS)
 	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) $(ZSTD_OPTS) \
+		LIBSRC_DIR=$(@D)/lib \
 		-C $(@D)/programs $(ZSTD_BUILD_PROG_TARGET)
 endef
 
Signature · 6 lines
2.45.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot