summaryrefslogtreecommitdiff
path: root/lang/icc/files/patch-icpc
blob: 03e4dd7c1c9529ad03f8736cca2022dddbb27704 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--- opt/intel/compiler60/ia32/bin/icpc.orig	Fri Sep  6 02:18:03 2002
+++ opt/intel/compiler60/ia32/bin/icpc	Tue Sep 10 18:32:59 2002
@@ -1,29 +1,29 @@
 #!/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/icpc" <INSTALLDIR>/compiler60/ia32/bin/icpcbin "$@";
+ exec ${PREFIX}/intel/compiler60/ia32/bin/icpcbin "$@";
 else
- exec -a "<INSTALLDIR>/compiler60/ia32/bin/icpc" <INSTALLDIR>/compiler60/ia32/bin/icpcbin;
+ exec ${PREFIX}/intel/compiler60/ia32/bin/icpcbin;
 fi