1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00
freebsd-ports/lang/icc7/files/patch-icc
Alexander Leidinger bc38b4f7e1 - Update to 6.0.1.304.
- Re-enable patching of iccvars.(c)sh (solely called by icid and therefore
  overlooked), accidentally broken by last commit.
- Fix generation of multi-threaded code, triggered by the (badly documented)
  compiler option "-mt".
- Disable compiler options "-openmp*" and "-parallel", they depend on
  libguide which itself depends on pthread_atfork() (not provided by libc_r),
  therefore don't install libguide.
  Note: All compiler options are now believed to either work on FreeBSD or
  be disabled (Maintainer note: '-prof_gen' is under investigation).
- Add a message about installing stlport-icc in order to get full C++ support.
- Remove workaround for generation of shared objects with binutils/ld 2.12.x,
  appears to be fixed (unfortunately no confirmation by Intel Support, "That
  is good news <...> then we should just close this issue." *sigh*).

Submitted by:	marius@alchemy.franken.de

- Add note about a problem on P4 and how to solve it.

Suggested by:	Martin Kahlert <martin.kahlert@infineon.com>

- Remove outdated information in pkg-descr.
2002-09-20 12:16:25 +00:00

62 lines
1.6 KiB
Plaintext

--- opt/intel/compiler60/ia32/bin/icc.orig Tue Aug 6 04:34:18 2002
+++ opt/intel/compiler60/ia32/bin/icc Tue Aug 6 04:46:51 2002
@@ -1,29 +1,49 @@
#!/bin/sh
-INTEL_LICENSE_FILE=<INSTALLDIR>/licenses;
+PREFIX=@@PREFIX@@
+export PREFIX;
+INTEL_LICENSE_FILE=${PREFIX}/intel/licenses;
export INTEL_LICENSE_FILE;
if [ -z LD_LIBRARY_PATH ]
then
- LD_LIBRARY_PATH=<INSTALLDIR>/compiler60/ia32/lib;
+ LD_LIBRARY_PATH=${PREFIX}/intel/compiler60/ia32/lib;
else
- LD_LIBRARY_PATH=<INSTALLDIR>/compiler60/ia32/lib:$LD_LIBRARY_PATH
+ LD_LIBRARY_PATH=${PREFIX}/intel/compiler60/ia32/lib:$LD_LIBRARY_PATH
fi
export LD_LIBRARY_PATH;
if [ -z PATH ]
then
- PATH=<INSTALLDIR>/compiler60/ia32/bin;
+ PATH=${PREFIX}/intel/compiler60/ia32/bin;
else
- PATH=<INSTALLDIR>/compiler60/ia32/bin:$PATH;
+ PATH=${PREFIX}/intel/compiler60/ia32/bin:$PATH;
fi
export PATH;
-export -n IA32ROOT; unset IA32ROOT;
-
if [ $# != 0 ]
then
- exec -a "<INSTALLDIR>/compiler60/ia32/bin/icc" <INSTALLDIR>/compiler60/ia32/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} ] || [ ${val1} = "-parallel" ] ; then
+ echo "Sorry, option '$val1' is not supported on FreeBSD."
+ exit 1
+ fi
+ set -- "$@" "$val1"
+ i=$(($i+1))
+ done
+ exec ${PREFIX}/intel/compiler60/ia32/bin/iccbin "$@";
else
- exec -a "<INSTALLDIR>/compiler60/ia32/bin/icc" <INSTALLDIR>/compiler60/ia32/bin/iccbin;
+ exec ${PREFIX}/intel/compiler60/ia32/bin/iccbin;
fi