diff options
author | P. 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) |
commit | 03b3eb11350e16275ff8cdede40c3a1e988688b7 (patch) | |
tree | ff016b60658d87c8a18388b9c05422a61af0016d | |
parent | 8bdf7e50eae673ffc7370e52c525176ab04258ac (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.
-rw-r--r-- | build | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |