summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-04-22 13:12:40 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-04-22 13:12:40 (EDT)
commitd562f30b491191423cee5da595a5215c954fc3a0 (patch)
treefee65c8c8a4b2a93c397e1a28fcb303ffbe62e38
parente05af6949000bdf66b28b56ba956d8bac22792c2 (diff)
build: Shorten paths to .la files in rm command.
-rwxr-xr-xbuild21
1 files changed, 11 insertions, 10 deletions
diff --git a/build b/build
index bab567d..e728d11 100755
--- a/build
+++ b/build
@@ -150,17 +150,18 @@ install: build
mv dest/usr/lib/$(OPK_HOST_ARCH)/libitm.a \
dest/usr/lib/$(OPK_HOST_ARCH)/gcc-$(base_version)/
# Remove libtool archives.
+ libdir=usr/lib/$(OPK_HOST_ARCH) && \
rm -f \
- dest/usr/lib/$(OPK_HOST_ARCH)/libmudflap.la \
- dest/usr/lib/$(OPK_HOST_ARCH)/libmudflapth.la \
- dest/usr/lib/$(OPK_HOST_ARCH)/libssp.la \
- dest/usr/lib/$(OPK_HOST_ARCH)/libssp_nonshared.la \
- dest/usr/lib/$(OPK_HOST_ARCH)/gcc-$(base_version)/liblto_plugin.la \
- dest/usr/lib/$(OPK_HOST_ARCH)/libquadmath.la \
- dest/usr/lib/$(OPK_HOST_ARCH)/libgomp.la \
- dest/usr/lib/$(OPK_HOST_ARCH)/libitm.la \
- dest/usr/lib/$(OPK_HOST_ARCH)/libstdc++.la \
- dest/usr/lib/$(OPK_HOST_ARCH)/libsupc++.la
+ dest/$(libdir)/libmudflap.la \
+ dest/$(libdir)/libmudflapth.la \
+ dest/$(libdir)/libssp.la \
+ dest/$(libdir)/libssp_nonshared.la \
+ dest/$(libdir)/gcc-$(base_version)/liblto_plugin.la \
+ dest/$(libdir)/libquadmath.la \
+ dest/$(libdir)/libgomp.la \
+ dest/$(libdir)/libitm.la \
+ dest/$(libdir)/libstdc++.la \
+ dest/$(libdir)/libsupc++.la
# Remove the info directory node.
rm -f dest/usr/share/info/dir
# Remove empty documentation files.