From 03b3eb11350e16275ff8cdede40c3a1e988688b7 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 27 Jul 2012 04:13:41 -0400 Subject: Provide symbolic links to native utilities. For example, link /usr/bin/as to /usr/bin/cortexa8-linux-eglibc-as on cortexa8-linux-eglibc systems. --- (limited to 'build') 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 -- cgit v0.9.1