summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-04-21 13:31:55 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-04-21 13:31:55 (EDT)
commitca529979f26b88b82462fe8e7ae1d1f67836f0a0 (patch)
treedabe63b0584287b4e7c80dc162ec0008d6ee4db0 /build
parent49cf3f62e5f983b6a93094b69092cec38553d5e2 (diff)
build: Move and remove libmudflap files.
Diffstat (limited to 'build')
-rwxr-xr-xbuild14
1 files changed, 14 insertions, 0 deletions
diff --git a/build b/build
index 933e9d3..34321f2 100755
--- a/build
+++ b/build
@@ -76,6 +76,18 @@ install: build
fincludedir=/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION)/finclude \
toolexeclibdir=/usr/lib/$(OPK_HOST_ARCH) MULTIOSDIR=
rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libiberty.a
+ # Move libmudflap.so and libmudflapth.so links.
+ rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libmudflap.so
+ ln -sf /usr/lib/$(OPK_HOST_ARCH)/libmudflap.so.0 \
+ dest/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION)/libmudflap.so
+ rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libmudflapth.so
+ ln -sf /usr/lib/$(OPK_HOST_ARCH)/libmudflapth.so.0 \
+ dest/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION)/libmudflapth.so
+ # Move libmudflap.a and libmudflapth.a.
+ mv dest/usr/lib/$(OPK_HOST_ARCH)/libmudflap.a \
+ dest/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION)/
+ mv dest/usr/lib/$(OPK_HOST_ARCH)/libmudflapth.a \
+ dest/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION)/
# Move libgcc_s.so.1 under /lib.
mkdir -p dest/lib/$(OPK_HOST_ARCH)
mv dest/usr/lib/$(OPK_HOST_ARCH)/libgcc_s.so.1 dest/lib/$(OPK_HOST_ARCH)
@@ -106,6 +118,8 @@ install: build
dest/usr/lib/$(OPK_HOST_ARCH)/gcc-$(BASE_VERSION)/
# Remove libtool archives.
rm -f \
+ dest/usr/lib/$(OPK_HOST_ARCH)/libmudflap.la \
+ dest/usr/lib/$(OPK_HOST_ARCH)/libmudflapth.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 \