diff options
author | Xuefer H <xuefer@gmail.com> | 2022-12-24 20:16:11 +0800 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-12-26 13:36:41 +0100 |
commit | ab31547df06430798e6adb853a7faab13eb1754c (patch) | |
tree | a72ce39a7a31ca807120e624175d40ffee658c7d /package/libs/libbsd | |
parent | 5c7e4a9d2e25d5ecc33c3c2650e4f954936c9c69 (diff) | |
download | upstream-ab31547df06430798e6adb853a7faab13eb1754c.tar.gz upstream-ab31547df06430798e6adb853a7faab13eb1754c.tar.bz2 upstream-ab31547df06430798e6adb853a7faab13eb1754c.zip |
libbsd: fix libpath to not use host path
libpath.so uses host path in ld script causing other packages fail to
cross compile, e.g. perl:
"ld: cannot find /usr/lib/libbsd.so.0.11.6: No such file or directory"
Fixes: openwrt/packages#19390
Signed-off-by: Xuefer H <xuefer@gmail.com>
Diffstat (limited to 'package/libs/libbsd')
-rw-r--r-- | package/libs/libbsd/Makefile | 1 | ||||
-rw-r--r-- | package/libs/libbsd/patches/001-fix-libpath.patch | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/package/libs/libbsd/Makefile b/package/libs/libbsd/Makefile index 789126cb82..92c7054e3b 100644 --- a/package/libs/libbsd/Makefile +++ b/package/libs/libbsd/Makefile @@ -14,6 +14,7 @@ PKG_LICENSE_FILES:=COPYING PKG_INSTALL:=1 PKG_BUILD_PARALLEL:=1 PKG_BUILD_DEPENDS := libmd +PKG_FIXUP:=autoreconf include $(INCLUDE_DIR)/package.mk diff --git a/package/libs/libbsd/patches/001-fix-libpath.patch b/package/libs/libbsd/patches/001-fix-libpath.patch new file mode 100644 index 0000000000..ca24070249 --- /dev/null +++ b/package/libs/libbsd/patches/001-fix-libpath.patch @@ -0,0 +1,13 @@ +do not use host path to fix cross compiling + +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -160,7 +160,7 @@ + (echo '/* GNU ld script'; \ + echo ' * The MD5 functions are provided by the libmd library. */'; \ + cat format.ld; \ +- echo "GROUP($(runtimelibdir)/$$soname AS_NEEDED($(MD5_LIBS)))"; \ ++ echo "GROUP($$soname AS_NEEDED($(MD5_LIBS)))"; \ + )>$(DESTDIR)$(libdir)/libbsd.so + else + if [ "$(libdir)" != "$(runtimelibdir)" ]; then \ |