diff options
Diffstat (limited to 'packaging/ld-wrapper.sh')
-rwxr-xr-x | packaging/ld-wrapper.sh | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/packaging/ld-wrapper.sh b/packaging/ld-wrapper.sh deleted file mode 100755 index 1991c5b..0000000 --- a/packaging/ld-wrapper.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -# This script is used as a wrapper for Dynamic Linker (ld) from binutils -# package. It's purpose is to provide working cross-ld for use inside Open -# Build Service. - -# Import variables from script, which is generated during the build of -# qemu-accel-* package (from spec-file): -source wrapper-config.sh - -# Get the name of executed file (it can be ld, ld.bfd, ld.gold): -LD_NAME=`basename $0` - -# Set the namd of cross ld: -CROSS_LD_NAME="${CROSS_ACCELERATION_DIRECTORY}/${CROSS_BIN_PREFIX}/${LD_NAME}.real" - -# Set the name of native ld: -NATIVE_LD_NAME="${NATIVE_BIN_PREFIX}/${LD_NAME}" - -for i in "$@"; do - if [ "${i:0:10}" = "--sysroot=" ]; then - ${CROSS_LD_NAME} "$@" || ${QEMU_NAME} ${NATIVE_LD_NAME} -L${GCC_LIBEXEC_DIRECTORY} `echo "$@" | sed -e "s#${CROSS_ACCELERATION_DIRECTORY}##g;s#--sysroot=[^[:space:]]\+# #g"` - exit $? - fi -done - -${CROSS_LD_NAME} --sysroot=/ "$@" || ${QEMU_NAME} ${NATIVE_LD_NAME} -L${GCC_LIBEXEC_DIRECTORY} `echo "$@" | sed -e "s#${CROSS_ACCELERATION_DIRECTORY}##g;s#--sysroot=[^[:space:]]\+# #g"` |