diff options
author | Alexander Leidinger <netchild@FreeBSD.org> | 2003-01-11 17:25:51 +0000 |
---|---|---|
committer | Alexander Leidinger <netchild@FreeBSD.org> | 2003-01-11 17:25:51 +0000 |
commit | 6b11c196c9c4e655afacb168f1e7b0e5e7ea4dc4 (patch) | |
tree | e23ac53aa8ba1ad0fffacf51be09ee88aae4dbe6 /lang/icc7/files/patch-ia32::bin::icpc | |
parent | Update icc to 7.0.078. (diff) |
Add missing files for the 7.0.078 update.
Pointy hat to: netchild
Diffstat (limited to 'lang/icc7/files/patch-ia32::bin::icpc')
-rw-r--r-- | lang/icc7/files/patch-ia32::bin::icpc | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/lang/icc7/files/patch-ia32::bin::icpc b/lang/icc7/files/patch-ia32::bin::icpc new file mode 100644 index 000000000000..49c3609b345b --- /dev/null +++ b/lang/icc7/files/patch-ia32::bin::icpc @@ -0,0 +1,67 @@ +--- ia32/bin/icpc.orig Fri Jan 10 16:47:29 2003 ++++ ia32/bin/icpc Fri Jan 10 17:19:03 2003 +@@ -1,29 +1,55 @@ + #!/bin/sh + +-INTEL_LICENSE_FILE=<INSTALLDIR>/licenses; ++PREFIX=@@PREFIX@@ ++export PREFIX; ++INTEL_LICENSE_FILE=${INTEL_LICENSE_FILE:-${PREFIX}/intel/licenses} + export INTEL_LICENSE_FILE; + + if [ -z LD_LIBRARY_PATH ] + then +- LD_LIBRARY_PATH=<INSTALLDIR>/compiler70/ia32/lib; ++ LD_LIBRARY_PATH=${PREFIX}/intel/compiler70/ia32/lib; + else +- LD_LIBRARY_PATH=<INSTALLDIR>/compiler70/ia32/lib:$LD_LIBRARY_PATH ++ LD_LIBRARY_PATH=${PREFIX}/intel/compiler70/ia32/lib:$LD_LIBRARY_PATH + fi + export LD_LIBRARY_PATH; + + if [ -z PATH ] + then +- PATH=<INSTALLDIR>/compiler70/ia32/bin; ++ PATH=${PREFIX}/intel/compiler70/ia32/bin; + else +- PATH=<INSTALLDIR>/compiler70/ia32/bin:$PATH; ++ PATH=${PREFIX}/intel/compiler70/ia32/bin:$PATH; + fi + export PATH; + +-export -n IA32ROOT; unset IA32ROOT; +- + if [ $# != 0 ] + then +- exec -a "<INSTALLDIR>/compiler70/ia32/bin/icpc" <INSTALLDIR>/compiler70/ia32/bin/icpcbin "$@"; ++ i=0 ++ argc=$# ++ while [ $i -lt $argc ] ; do ++ val1=$1 ++ shift ++ val2=${val1#"-openmp"} ++ if [ ${#val1} -gt ${#val2} ] ; then ++ echo "Sorry, option '$val1' is not supported on FreeBSD." ++ exit 1 ++ fi ++ val2=${val1#"-par"} ++ if [ ${#val1} -gt ${#val2} ] ; then ++ echo "Sorry, option '$val1' is not supported on FreeBSD." ++ exit 1 ++ fi ++ if [ "${val1}" = "-Kpic" ] || [ "${val1}" = "-KPIC" ] || \ ++ [ "${val1}" = "-fpic" ] || [ "${val1}" = "-fPIC" ] ; then ++ set -- "$@" "-Qoption,ld,-PIC" ++ fi ++ if [ "${val1}" = "-mt" ] ; then ++ unset val1 ++ set -- "$@" "-Qoption,ld,-MT" ++ fi ++ set -- "$@" "$val1" ++ i=$(($i+1)) ++ done ++ exec ${PREFIX}/intel/compiler70/ia32/bin/icpcbin "$@"; + else +- exec -a "<INSTALLDIR>/compiler70/ia32/bin/icpc" <INSTALLDIR>/compiler70/ia32/bin/icpcbin; ++ exec ${PREFIX}/intel/compiler70/ia32/bin/icpcbin; + fi |