summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2014-03-11 18:14:18 -0400
committerKay Sievers <kay@vrfy.org>2014-03-11 23:58:00 +0100
commit0ce91e4e3ba60d5c87307c1be4a3f6095790c4c2 (patch)
treee41f8f71ed8e328c26db803b3aee1e6f5b9b2a17 /Makefile.am
parentb5d3e1688133077ca20542a20dcd8919147e72e1 (diff)
build-sys: Fix move-to-rootlibdirsystemd/v211
Since we now use ln -s --relative, using this sed statement is redundant and causes broken symlinks to be installed.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 182eca69df..bd78f444c5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -207,9 +207,8 @@ define move-to-rootlibdir
if test "$(libdir)" != "$(rootlibdir)"; then \
$(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
- so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
rm -f $(DESTDIR)$(libdir)/$$libname && \
- $(LN_S) --relative -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
+ $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
fi
endef