mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
80b69054db
- 5.x got the header fix too, don't install replacement headers there [1] - allow to override GXX_ROOT [2] Note: you may see "as: Illegal seek" while compiling with icc (a simple test didn't revealed the same message with icpc). I don't know the reason for it, but the resulting executable seems to work, so I commit the update. Thanks to: marius [1] Requested by: mi [2]
66 lines
1.5 KiB
Plaintext
66 lines
1.5 KiB
Plaintext
--- bin/icc.orig Sun Mar 6 15:40:09 2005
|
|
+++ bin/icc Sun Mar 6 15:44:30 2005
|
|
@@ -1,5 +1,11 @@
|
|
#!/bin/sh
|
|
|
|
+ICC_LOCALBASE=%%ICC_LOCALBASE%%
|
|
+export ICC_LOCALBASE
|
|
+
|
|
+GXX_ROOT=${GXX_ROOT:-<INSTALLDIR>/lib}
|
|
+export GXX_ROOT
|
|
+
|
|
if [ -z "$INTEL_LICENSE_FILE" ]
|
|
then
|
|
INTEL_LICENSE_FILE="<INSTALLDIR>/licenses";
|
|
@@ -24,11 +30,46 @@
|
|
fi
|
|
export PATH;
|
|
|
|
-export -n IA32ROOT; unset IA32ROOT;
|
|
-
|
|
if [ $# != 0 ]
|
|
then
|
|
- exec -a "<INSTALLDIR>/bin/icc" <INSTALLDIR>/bin/iccbin "$@";
|
|
+ i=0
|
|
+ argc=$#
|
|
+ while [ $i -lt $argc ] ; do
|
|
+ val1=$1
|
|
+ shift
|
|
+ for s in .C .cc .cpp .cxx .c++; do
|
|
+ val2=${val1%$s}
|
|
+ if [ ${#val1} -gt ${#val2} ] ; then
|
|
+ echo "Please use icpc to compile C++ source."
|
|
+ exit 1
|
|
+ fi
|
|
+ done
|
|
+ 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
|
|
+ if [ "${val1}" = "-pipe" ] ; then
|
|
+ unset val1
|
|
+ set -- "$@"
|
|
+ fi
|
|
+ set -- "$@" "$val1"
|
|
+ i=$(($i+1))
|
|
+ done
|
|
+ exec <INSTALLDIR>/bin/iccbin "$@";
|
|
else
|
|
- exec -a "<INSTALLDIR>/bin/icc" <INSTALLDIR>/bin/iccbin;
|
|
+ exec <INSTALLDIR>/bin/iccbin;
|
|
fi
|