summaryrefslogtreecommitdiff
path: root/lang/icc/files/patch-bin__icpc
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-29 17:12:47 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-29 17:12:47 +0000
commit08a006d08a4c35d2c3ecc9a3d10cf7fd14661a84 (patch)
tree0cfc4f0736babb895eb97a65c6defe632a0249c7 /lang/icc/files/patch-bin__icpc
parenteditors/fte: update to 20110708 (diff)
Rename all patches that contain '::' as a path separator, and use
'__' instead.
Diffstat (limited to 'lang/icc/files/patch-bin__icpc')
-rw-r--r--lang/icc/files/patch-bin__icpc68
1 files changed, 68 insertions, 0 deletions
diff --git a/lang/icc/files/patch-bin__icpc b/lang/icc/files/patch-bin__icpc
new file mode 100644
index 000000000000..7ea91465461a
--- /dev/null
+++ b/lang/icc/files/patch-bin__icpc
@@ -0,0 +1,68 @@
+--- bin/icpc.orig Sun Mar 6 15:46:09 2005
++++ bin/icpc Sun Mar 6 15:48:12 2005
+@@ -1,5 +1,17 @@
+ #!/bin/sh
+
++ICC_LOCALBASE=%%ICC_LOCALBASE%%
++export ICC_LOCALBASE
++
++GXX_ROOT=${GXX_ROOT:-<INSTALLDIR>/lib}
++export GXX_ROOT
++
++GXX_INCLUDE=${GXX_INCLUDE:-%%GXX_INCLUDE%%}
++if [ ! -z "$GXX_INCLUDE" ]
++then
++ export GXX_INCLUDE
++fi
++
+ if [ -z "$INTEL_LICENSE_FILE" ]
+ then
+ INTEL_LICENSE_FILE="<INSTALLDIR>/licenses";
+@@ -24,11 +36,43 @@
+ fi
+ export PATH;
+
+-export -n IA32ROOT; unset IA32ROOT;
+-
+ if [ $# != 0 ]
+ then
+- exec -a "<INSTALLDIR>/bin/icpc" <INSTALLDIR>/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}" = "-cxxlib-icc" ] ; then
++ set -- "$@" "-I${ICC_LOCALBASE}/include/stlport"
++ set -- "$@" "-Qoption,ld,-CPLUSPLUS"
++ 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
++ if [ "${val1}" = "-pipe" ] ; then
++ unset val1
++ set -- "$@"
++ fi
++ set -- "$@" "$val1"
++ i=$(($i+1))
++ done
++ exec <INSTALLDIR>/bin/icpcbin "$@";
+ else
+- exec -a "<INSTALLDIR>/bin/icpc" <INSTALLDIR>/bin/icpcbin;
++ exec <INSTALLDIR>/bin/icpcbin;
+ fi