Skip to content

Commit

Permalink
rewrite_libtool: rewrite more host paths
Browse files Browse the repository at this point in the history
nfs-utils complained during link about missing /usr/lib/libblkid.la
A check found that libmount.la had
dependency_libs=' -L<TARGET>/root/lib -L<TARGET>/root/usr/lib
   /usr/lib/libblkid.la'
This is wrong and installing util-linux-devel on the host is not the
proper-fix ;-)
Rewrite these hard-coded paths to generic "-l<libname>" instead.
  • Loading branch information
seife committed Jan 28, 2024
1 parent e36d8f9 commit b3f82aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/pkg-utils.mk
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,8 @@ endef
# rewrite libtool libraries
REWRITE_LIBTOOL_RULES = "\
s,^libdir=.*,libdir='$(1)',; \
s,\(^dependency_libs='\| \|-L\|^dependency_libs='\)/lib,\ $(1),g"
s,\(^dependency_libs='\| \|-L\|^dependency_libs='\)/lib,\ $(1),; \
/^dependency_libs=/s, /usr/lib/lib\([^ ]*\).la, -l\1,g; "

REWRITE_LIBTOOL_TAG = rewritten=1

Expand Down

0 comments on commit b3f82aa

Please sign in to comment.