diff options
Diffstat (limited to 'lang/icc7/files/ld')
-rw-r--r-- | lang/icc7/files/ld | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/lang/icc7/files/ld b/lang/icc7/files/ld deleted file mode 100644 index 3c228fb5d445..000000000000 --- a/lang/icc7/files/ld +++ /dev/null @@ -1,66 +0,0 @@ -#! /bin/sh -# icc custom ld script; fiddles with the ld commandline. This is done -# by shifting through the entire argument list. If we like the arg, we -# append it to the end of the arglist via 'set'. If not, we don't -# append anything, and the arg is shifted out of existence. - -# Written by Dan Nelson <dnelson@allantgroup.com> with some modifications -# by Alexander Leidinger <netchild@FreeBSD.org>. - -PREFIX=@@PREFIX@@ - -i=0 -argc=$# -# prepend "-m elf_i386" to the commandline -set -- "$@" -m elf_i386 -while [ $i -lt $argc ] ; do - val=$1 - shift - case $val in - # there was also "-lirc", but it a test with -lirc works here - -limf|-lcprts|-lunwind|\ - ${PREFIX}/intel/compiler60/ia32/lib/icrt.link|\ - -Qy\ - ) - # libs that have Linux lib dependencies - # possibly unneeded .link file? - # obsolete flag - unset val - ;; - /lib/ld-linux.so.2) - # switch it - val=/usr/libexec/ld-elf.so.1 - ;; - -L/usr/lib) - # remove this, and replace with FreeBSD's lib paths - unset val - set -- "$@" -L/usr/libexec/elf -L/usr/libexec -L/usr/lib - ;; - ${PREFIX}/intel/compiler60/ia32/lib/crtxi.o) - # switch it - val=/usr/lib/crtbegin.o - ;; - ${PREFIX}/intel/compiler60/ia32/lib/crtxn.o) - # switch it good - val=/usr/lib/crtend.o - ;; - -Bdynamic) - # Force libcxa to static linkage, since the dynamic - # version has a linux glibc dependency. This might not - # fully work, as when it does call libc stuff it could - # fail. I haven't been able to make it happen though. - if [ "$1" == "-lcxa" ] ; then - val=-Bstatic - fi - ;; - *) - ;; - esac - # append our new $val to the end of argv, if it still exists. - if [ ${#val} -gt 0 ] ; then - set -- "$@" "$val" - fi - i=$(($i+1)) -done -# run FreeBSD's ld with our new args -exec ${PREFIX}/intel/compiler60/ia32/bin/real/ld "$@" |