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