Skip to content

Commit

Permalink
ncurses: Fix path in ncursesw.pc
Browse files Browse the repository at this point in the history
The file contains the the /usr/lib path from the toolchain directory and
not from the target directory. The /usr/lib directory for the toolchain
is empty and the shared library is not in the specified paths. On RISCV
the linker of util-linux was finding the libncursesw.so in my host
system, tried to link against it and failed. Fix the .pc file.

Fixes: #15942
Co-authored-by: Thomas Weißschuh <[email protected]>
Link: openwrt/openwrt#16018
Signed-off-by: Robert Marko <[email protected]>
(cherry picked from commit 91573ac)
Link: openwrt/openwrt#16390
Signed-off-by: Hauke Mehrtens <[email protected]>
  • Loading branch information
hauke and t-8ch committed Sep 15, 2024
1 parent b1858ff commit 461102d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package/libs/ncurses/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ define Build/InstallDev
$(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' -e 's/$$$$INCS //g' \
$(2)/bin/ncursesw6-config
ln -sf $(STAGING_DIR)/host/bin/ncursesw6-config $(1)/usr/bin/ncursesw6-config
$(SED) 's,$(TOOLCHAIN_DIR),$(STAGING_DIR),g' \
$(1)/usr/lib/pkgconfig/ncursesw.pc
endef

define Host/Compile
Expand Down

0 comments on commit 461102d

Please sign in to comment.