summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
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