treewide: add ORIG_PATH variable
[openwrt/staging/hauke.git] / target / toolchain / files / wrapper.sh
index 4b3f8f911ab67ed57652c5325304e732b23bdc71..09a9cac928abd9f38e55e4b7ef6e6a0bb415f0e9 100755 (executable)
@@ -43,6 +43,7 @@ TOOLCHAIN_BIN_DIR="$REALNAME_DIR/"
 
 # Set the PATH so that our run-time location is first
 # (get_feature is run from the path, so this has to be set)
+export ORIG_PATH=${ORIG_PATH:-$PATH}
 export PATH="$TOOLCHAIN_BIN_DIR":$PATH
 export GCC_HONOUR_COPTS