summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.