summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-24 15:39:04 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-24 15:39:04 (EDT)
commitab8ac4797c085af6b0930bbb71ccd57413eaf071 (patch)
treecf184e0d60b700267a741a6d16dc0bab6cc09ccd /build
parentf87874ca64b7ba8a363f98e47eb63a4334a15411 (diff)
build: Work around oh-shlibdeps quirk
Diffstat (limited to 'build')
-rwxr-xr-xbuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/build b/build
index 09e48bf..9a764e9 100755
--- a/build
+++ b/build
@@ -68,3 +68,8 @@ install: build
grep -E "lib.*[.]$(legacy_abi_ver)(-dev)?") \
" oh-installfiles -d dest-legacy
oh-shlibdeps
+ # Remove self-dependencies.
+ set -e; for f in *.substvars; do p="$${f%.substvars}"; \
+ mv "$${f}" "$${f}.orig"; \
+ sed "s/ $${p},//" "$${f}.orig" >"$${f}"; \
+ done