summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2018-09-12 18:21:34 +0100
committerThomas Monjalon <thomas@monjalon.net>2018-09-17 13:36:52 +0200
commit983f08969656128bc64a36ce70de6cb44e7bd070 (patch)
treeed20c86b2f82c3d609fd7050b6f2ae6706645c23 /buildtools
parent54d609a13876a80bb791726e91e631262f1921a1 (diff)
downloaddpdk-next-eventdev-983f08969656128bc64a36ce70de6cb44e7bd070.zip
dpdk-next-eventdev-983f08969656128bc64a36ce70de6cb44e7bd070.tar.gz
dpdk-next-eventdev-983f08969656128bc64a36ce70de6cb44e7bd070.tar.xz
build: create relative symlinks for PMDs in libdir
Add -r option to ln, otherwise the link will be absolute and contain the build path and break packaging among other things: lrwxrwxrwx 1 bluca bluca 99 Sep 11 22:17 librte_mempool_dpaa.so.1.1 -> /home/bluca/git/dpdk/testt4//usr/local/lib/x86_64-linux-gnu/dpdk/ drivers/librte_mempool_dpaa.so.1.1 With -r: lrwxrwxrwx 1 bluca bluca 35 Sep 12 18:13 librte_pmd_zlib.so.1.1 -> dpdk/drivers/librte_pmd_zlib.so.1.1 Fixes: ed4d43d73e2b ("build: symlink drivers to library directory") Cc: stable@dpdk.org Signed-off-by: Luca Boccassi <bluca@debian.org> Tested-by: Timothy Redaelli <tredaelli@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/symlink-drivers-solibs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/symlink-drivers-solibs.sh b/buildtools/symlink-drivers-solibs.sh
index 803dfec..9826c6a 100644
--- a/buildtools/symlink-drivers-solibs.sh
+++ b/buildtools/symlink-drivers-solibs.sh
@@ -9,4 +9,4 @@
# parameters to script are paths relative to install prefix:
# 1. directory containing driver files e.g. lib64/dpdk/drivers
# 2. directory for installed regular libs e.g. lib64
-ln -sf ${DESTDIR}/${MESON_INSTALL_PREFIX}/$1/* ${DESTDIR}/${MESON_INSTALL_PREFIX}/$2
+ln -rsf ${DESTDIR}/${MESON_INSTALL_PREFIX}/$1/* ${DESTDIR}/${MESON_INSTALL_PREFIX}/$2