From: Felix Fietkau Date: Mon, 11 Dec 2017 11:16:43 +0000 (+0100) Subject: build: support mklibs on libraries without extra soname X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c3923e9190488cce6bb434553402f0ef68b7e1f2;p=openwrt%2Fstaging%2Fnbd.git build: support mklibs on libraries without extra soname Signed-off-by: Felix Fietkau --- diff --git a/include/rootfs.mk b/include/rootfs.mk index 74785cbbd3..7453e6823b 100644 --- a/include/rootfs.mk +++ b/include/rootfs.mk @@ -23,7 +23,7 @@ ifdef CONFIG_USE_MKLIBS --target $(REAL_GNU_TARGET_NAME) \ `cat $(TMP_DIR)/mklibs-progs $(TMP_DIR)/mklibs-libs` 2>&1 $(RSTRIP) $(TMP_DIR)/mklibs-out - for lib in `ls $(TMP_DIR)/mklibs-out/*.so.* 2>/dev/null`; do \ + for lib in `ls $(TMP_DIR)/mklibs-out/*.so* 2>/dev/null`; do \ LIB="$${lib##*/}"; \ DEST="`ls "$(1)/lib/$$LIB" "$(1)/usr/lib/$$LIB" 2>/dev/null`"; \ [ -n "$$DEST" ] || continue; \