summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-07-27 04:13:41 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-07-27 04:13:41 (EDT)
commit03b3eb11350e16275ff8cdede40c3a1e988688b7 (patch)
treeff016b60658d87c8a18388b9c05422a61af0016d /build
parent8bdf7e50eae673ffc7370e52c525176ab04258ac (diff)
Provide symbolic links to native utilities.
For example, link /usr/bin/as to /usr/bin/cortexa8-linux-eglibc-as on cortexa8-linux-eglibc systems.
Diffstat (limited to 'build')
-rw-r--r--build6
1 files changed, 6 insertions, 0 deletions
diff --git a/build b/build
index 5e80c7a..6b8c8a4 100644
--- a/build
+++ b/build
@@ -38,6 +38,12 @@ install.stamp: build
make CFLAGS='$(CFLAGS)' prefix="$${PWD}/../dest" install
# Remove static library dependency metadata generated by libtool.
rm -f ../dest/usr/lib/*.la
+ # Make symbolic links to native utilities.
+ if [ '$(OH_HOST_ARCH)' = '$(PKG_TARGET_ARCH)' ]; then \
+ for util in ../dest/usr/bin/*; do \
+ ln -sf "$(PKG_TARGET_ARCH)-$${util##*/}" "$${util}"; \
+ done \
+ fi
touch $@
binary-arch: install